[jdom-interest] instanceof Text and XMLOutputter request

Philip Nelson panmanphil at yahoo.com
Wed Apr 3 20:51:13 PST 2002


> (a) String outputElementContentAsString(Element e)

How about (and I am doing this from memory but...)

StringWriter sw = new StringWriter()
XMLOutputter out = new XMLOutputter(sw);
out.output(yourElement);
String whatYouWant = sw.toString();

__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/



More information about the jdom-interest mailing list