How to convert org.jdom.Document to String

Aravind picture Aravind · Dec 3, 2010 · Viewed 24.9k times · Source

How do I to convert an org.jdom.Document to a String in Java?

Answer

Vladimir Ivanov picture Vladimir Ivanov · Dec 3, 2010
new XMLOutputter().outputString(doc);