Let's take your example.

DOMNode *dn;
...
//Do something with "dn" node
...
// char* xmlFile = dn->AsXML(); //it should return whole xml file - all
values of all child nodes of "dn" element
// now you need to instaniate a DOMWriter (let's call him writer) and set
all the features you care, like pretty-printing, attribute normalization
etc. Look at DOM Level 3 LS or at the Xerces Documentation for more
information.
XMLCh* xmlFile = writer->writeToString(dn);
return xmlFile;


Hope this is helpful.
Examples for using DOMWriter are included in the Xerces-Package.

Greetings,
Denny

----- Original Message ----- 
From: "Milan Tomic" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, December 01, 2003 4:30 PM
Subject: RE: DOMNode to char* conversion


>
> > Or you can take DOMWriters method writeToString(const DOMNode
> > &nodeToWrite), this tries to return the serialized XML
> > represantation of the given Node.
> Could you please provide some code example? I've tried to find one in
> Xerces sources but failed.
>
> Thank you.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to