Anand,

Here's an example of a class I wrote to do just that.
Feel free to use this code; it writes to any std::ostream, so you can use it
for files, strings or stdout. No warranties, though ;-)

Share and enjoy!


> -----Original Message-----
> From: Awasthi, Anand [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, June 14, 2001 17:24 PM
> To: '[EMAIL PROTECTED]'
> Subject: DOM Print Sample -- generate XML from DOM
>
>
> Hi,
>
>
> I am going thru the DOMPrint sample looking for  how to Generatre XML from
> DOM Tree.
>
> actually i want the output XML in two ways :
>
>
> 1.) output xml to come out into the string , which i wll pass a argument
> 2.)  output xml  to come into the file, i will pass file name  as
> argument
>
> could some pls provide me some example of above cases ??
>
> thanks a lot
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

DOMSerializer.cpp

DOMSerializer.hpp

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

Reply via email to