[jdom-interest] XMLOutputter problem
jhunter at servlets.com
Fri Feb 8 12:59:27 PST 2002
Your passing "true" indicates you want newlines added. Don't pass
true. You probably don't want to pass " " for the indent either. Just
use the default XMLOutputter constructor.
Alex Devasia wrote:
> I notice blank lines get inserted between lines each time I edit an XML
> file. The class is constructed as follows:
> m_xmlOutputter = new XMLOutputter(" ", true);
> I don't want to call m_xmlOutputter.setTextNormalize(true) because it
> removes whitespace from actual values being written to the file. I just want
> to prevent blank lines from being written to the file. Can I fix this
> problem by calling some other method. I hope this gets fixed in version 8.
> To control your jdom-interest membership:
More information about the jdom-interest