XML & Web services: Converting XML Document to String
- Posted by: Charles Lee
- Posted on: June 05 2005 09:13 EDT
I have created a XML Document in memory (class of org.w3c.dom.Document). I would like to get a string represenation of this. I was just wondering if there are somthing in the api I can use so I wouldn't have to write out a new one.
Thanks for any advise.
Use the Apache XMLSerializer
here's an example:
Just obtain an empty Transformer from factory and you get going
Thanks for the help!!