How do I to convert an org.jdom.Document to a String in Java?
new XMLOutputter().outputString(doc);
I got the answer myself
XMLOutputter xmOut = new XMLOutputter();
System.out.println("----" + xmOut.outputString(doc));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With