Hi,
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.
-
Converting XML Document to String (3 messages)
- Posted by: Charles Lee
- Posted on: June 05 2005 09:13 EDT
Threaded Messages (3)
- Apache by Nathan Smith on June 05 2005 16:44 EDT
- Use an empty Transformer object by Biswa Das on June 07 2005 19:54 EDT
- Converting XML Document to String by Charles Lee on June 12 2005 12:39 EDT
-
Apache[ Go to top ]
- Posted by: Nathan Smith
- Posted on: June 05 2005 16:44 EDT
- in response to Charles Lee
Use the Apache XMLSerializer
here's an example:
http://www.informit.com/articles/article.asp?p=31349&seqNum=3&rl=1 -
Use an empty Transformer object[ Go to top ]
- Posted by: Biswa Das
- Posted on: June 07 2005 19:54 EDT
- in response to Charles Lee
Just obtain an empty Transformer from factory and you get going -
Converting XML Document to String[ Go to top ]
- Posted by: Charles Lee
- Posted on: June 12 2005 12:39 EDT
- in response to Charles Lee
Thanks for the help!!
Charlie