<br><font size=2><tt>Well, our application uses white space in Text elements,
also at the end of the element. Normalizing/trimming will definitely break
it. We have thousands of such documents in several databases!</tt></font>
<br>
<br><font size=2><tt>I wrote my own XMLOutputter for an older jdom version,
than deleted it as it worked fine in b8 (and a version I got from the CVS
a couple of weeks ago to fix the StringBuffer problem). Now I get bloated
files again :-((</tt></font>
<br>
<br><font size=2><tt>I think there should be settings so one gets out of
XMLOutputter exactly what was parsed in before.</tt></font>
<br>
<br><font size=2><tt>Will have a look at the changes!</tt></font>
<br>
<br><font size=2><tt>Michael Baehr</tt></font>
<br>
<br><font size=2><tt>> Jason Hunter wrote:<br>
> <br>
> I'm glad things worked out for you. I think b8 had some issues
where it<br>
> trimmed a little more than it really "should" have, and
your code<br>
> probably benefited from that.<br>
> <br>
> If you want to try something interesting, get the CVS code and use
the<br>
> new Format feature:<br>
> <br>
> new XMLOutputter(Format.getPrettyFormat())<br>
> <br>
> It should work nicely without you having to call set methods. <br>
> <br>
> Hmm, I did set the "pretty" filter to just do text trimming
and not text<br>
> normalizing. I wonder if we should do normalizing instead? The<br>
> downside is it'll probably be slower, although I have no benchmarks
to<br>
> know if it's significant.<br>
> <br>
> -jh-<br>
</tt></font>