[jdom-interest] JDOM white space probelm

Bradley S. Huffman hip at a.cs.okstate.edu
Tue Feb 25 07:17:05 PST 2003


Yep, there's a bug in XMLOutputter.printElement. I'll work on a patch tonight.

Brad

=?iso-8859-1?q?Alexandre=20Gomes?= writes:

> Brad i know they are default, the problem is when i set newLines to true a el
> ement´s text with only white spaces like :
> 
>  <element01>    </element01>
> 
> it´s content is trimed like this :
> 
> <element01/>
> 
> but when i set newLines to false the problem is solved.
> 
> but in my case i MUST use setNewLines(true) to put a order on my recorded XML
>  files. Any idea?



More information about the jdom-interest mailing list