Checkout the DOMPrint sample from the Xerces-C++ package 
(http://xerces.apache.org/xerces-c/domprint-3.html) it should have everything 
you need for this.

/Rob

-----Original Message-----
From: Renato Forti [mailto:[email protected]] 
Sent: den 27 februari 2013 13:20
To: [email protected]
Subject: How to convert DOMNode to std::string?

 

Hi Again,

 

I need convert DOMNode* into std::string! How I can do this, for sample I have 
this xml document:

 

<root>

   <Lev1>

       <Lev2 v="2">

       text

       </Lev2>

   </Lev1>

</root>

 

In my DOMNode* I have "<Lev1>" then I want convert it on std::string, then I 
will have:

 

std::string =  <Lev1><Lev2 v="2">text </Lev2></Lev1>

 

How I can do this!

 

Thanks to all

 

Reply via email to