July 4, 2012

JDOM Document to String

XMLOutputter outputter = new XMLOutputter(Format.getPrettyFormat());
String scenarioStr = outputter.outputString(jdomDoc);


Reference : http://cafeconleche.org/books/xmljava/chapters/ch14s04.html

No comments:

Post a Comment