问题
How do I to convert an org.jdom.Document to a String in Java?
回答1:
new XMLOutputter().outputString(doc);
回答2:
I got the answer myself
XMLOutputter xmOut = new XMLOutputter();
System.out.println("----" + xmOut.outputString(doc));
来源:https://stackoverflow.com/questions/4343683/how-to-convert-org-jdom-document-to-string