[jdom-interest] beta5 comments

Alex Chaffee guru at edamame.stinky.com
Fri Sep 29 08:03:24 PDT 2000


> 2. XMLOutputter.  Now that formatting is preserved, XMLOutputter is not
> the pretty-printer it once was.  However, I need some kind of outputter
> that will produce the same result whether the input document was
> programmatically constructed (without formatting) or constructed from a
> text file (with formatting).  What's the recommended procedure?

Do you mean the whitespace issue?  If you want the XMLOutputter to
trim whitespace from text nodes, then apply my patch and call
xo.setTrimText(true) -- then it will look the same no matter how the
source was "formatted".  

Note that I am *not* recommending we put that patch in beta 5, since
it hasn't been tested/vetted.

 - A

-- 
Alex Chaffee                       mailto:alex at jguru.com
jGuru - Java News and FAQs         http://www.jguru.com/alex/
Creator of Gamelan                 http://www.gamelan.com/
Founder of Purple Technology       http://www.purpletech.com/
Curator of Stinky Art Collective   http://www.stinky.com/



More information about the jdom-interest mailing list