[jdom-interest] XMLOutputter indent problems

Roy van der Kuil roy_van_der_kuil at hotmail.com
Tue May 20 12:44:32 PDT 2003


Hi,

I am having problems with writing a previously readed xml-file.
if I have a file that says:
<fruits>
	<fruit name="banana"/>
	<fruit name="apple"/>
</fruits>

And I read it in (using SAXBuilder)
and after that do an new XMLOutputter("   ", true).output(fruitDocument, 
file);
I get:
<fruits>

	<fruit name="banana"/>

	<fruit name="apple"/>

</fruits>

After re-reading  and rewritng that another empty line is added between the 
elements.

I;have replaced the XMLOutputter from beta-9 with the one from beta-8 and 
that fixes the problem.. Any clues?

-Roy

_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online 
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963




More information about the jdom-interest mailing list