[jdom-interest] Formatting XMLOutputter with indents and linefeeds

Thomas C. Thompson tthompson at gr.com
Tue Oct 3 08:51:15 PDT 2000

I have used the following code hoping to get the xml 
output to be formatted with indents and linefeeds to no 
avail.  The output is just strung together in a single 
line.  I'm sorry if this has been addressed but...

// Output the document, use standard formatter
XMLOutputter fmt = new XMLOutputter("  ", true);
fmt.output(doc, out);

Thanks for the help


More information about the jdom-interest mailing list