[jdom-interest] XMLOutputter problem
Jason Hunter
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.
-jh-
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.
>
> Thanks
>
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com
More information about the jdom-interest
mailing list