[jdom-interest] beta5 comments

Brad Morgan Brad.Morgan at e-pubcorp.com
Fri Sep 29 13:28:59 PDT 2000

Once Alex's patch is in the library, you shouldn't have to keep track of the
state of the document.  You have two choices, 1) keep the old whitespace or
2) remove it and add new.  It doesn't need to be removed by the builder
because the patched XMLOutputter will do
the right thing.  The rest of JDOM doesn't care if its there or not.

Brad Morgan
e-Publishing Corp.

Email: Brad.Morgan at e-pubcorp.com
Phone: (719)593-7377 x35
Fax: (719)593-2996

-----Original Message-----
From: jdom-interest-admin at jdom.org
[mailto:jdom-interest-admin at jdom.org]On Behalf Of Jason Hunter
Sent: Friday, September 29, 2000 1:10 PM
To: Joseph Bowbeer
Cc: alex at jguru.com; jdom-interest at jdom.org
Subject: Re: [jdom-interest] beta5 comments

> Yes, I mean the whitespace issue.
> I need to use XMLOutputter as a pretty-printer, and the patched
> XMLOutputter should do the trick.  (Currently I have to keep track of
> whether the document already contains indentation and new lines -- or
> not.)

Cool, please if you could, add the patch and let us know if it works.
Alex says he didn't do real testing, so we're waiting a little on
integration until someone gives it a run-through (I'm booked --
literally, with writing my book).

> Q: Wouldn't it be preferable in some cases to also enhance the builder
> side to optionally remove whitespace?

Yep.  It's in the TODO.  XML purists are going to scream.

To control your jdom-interest membership:

More information about the jdom-interest mailing list