[jdom-interest] Re: bloated RC2 files - extra white space

Elliotte Rusty Harold elharo at metalab.unc.edu
Mon May 5 11:17:03 PDT 2003


At 8:12 PM +0200 5/5/03, michael.baehr at multivisual.de wrote:

I think there should be settings so one gets out of XMLOutputter 
exactly what was parsed in before.


That's exactly the default behavior. Unless you tell XMLOutputter to 
do something funny with the white space, it will reproduce what it 
started with.

There is a potential issue that the parser, not JDOM but the parser, 
occasionally normalizes particular white space in attribute values, 
and converts carriage returns to line feeds. But XMLOutputter works 
with what it gets from the parser unless you tell it to do something 
different.
-- 

   Elliotte Rusty Harold
   elharo at metalab.unc.edu
   Processing XML with Java (Addison-Wesley, 2002)
   http://www.cafeconleche.org/books/xmljava
   http://www.amazon.com/exec/obidos/ISBN%3D0201771861/cafeaulaitA



More information about the jdom-interest mailing list