Question

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

Was it helpful?

Solution

new XMLOutputter().outputString(doc);

OTHER TIPS

I got the answer myself

XMLOutputter xmOut = new XMLOutputter(); 
System.out.println("----" + xmOut.outputString(doc));
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top