[jdom-interest] setTextTrim & setNewlines
William Krick
wkrick at eio-online.com
Wed Dec 22 15:07:09 PST 2004
I just recently upgraded to JDOM 1.0 from JDOM b9. The code below no longer
works because setTextTrim() & setNewlines() are no longer present. What is
the recommended way to perform these actions with the new API?
// build a string from an XML document
public static String docToString(Document doc) {
XMLOutputter outputter = new XMLOutputter();
outputter.setTextTrim(true);
outputter.setNewlines(false);
return outputter.outputString(doc);
}
thanks
...
Bill
More information about the jdom-interest
mailing list