[jdom-interest] Stirring up Trouble

Brett McLaughlin brett.mclaughlin at lutris.com
Wed Jul 19 10:21:53 PDT 2000


Jason Hunter wrote:
> 
> > So, here's the crux of (at least) this email:
> >
> > getContent(boolean preserveWhitespace);
> >
> > is perfectly intuitive.
> >
> > But what does
> >
> > getContent()
> >
> > do?
> 
> It does what the docs say it does.  Which for JDOM is trim the
> whitespace, because getMixedContent() has to follow suit and I'll be
> damned if getMixedContent() is going to return all the intermediary
> whitespace elements in its simplified form.

Completely disagree. The spec says very clearly that whitespace is
normal, so I think the simplest form returns what the spec says it does.
You should have to /do something/ to change what is defined as normal.
We can certainly normalize the space into one String, though, I'm all
for that. Keep in mind that with validation, this really doesn't happen
that much (whitespace, element, whitespace) because it is ignorable
whitespace, and goes away.

It seems as people are starting to agree ;-)

-Brett

> 
> -jh-
> 
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com

-- 
Brett McLaughlin, Enhydra Strategist
Lutris Technologies, Inc. 
1200 Pacific Avenue, Suite 300 
Santa Cruz, CA 95060 USA 
http://www.lutris.com
http://www.enhydra.org



More information about the jdom-interest mailing list