[jdom-interest] PATCH: Whitespace in Element

guru at stinky.com guru at stinky.com
Sat Jun 16 09:01:39 PDT 2001

On Sat, Jun 16, 2001 at 11:59:49AM -0400, Elliotte Rusty Harold wrote:
> At 8:14 AM -0700 6/16/01, guru at stinky.com wrote:
> >Currently, Element.getTextNormalize only considers the following
> >characters to be whitespace:
> >  space, tab, \n, \r
> >
> >This breaks the Unicode and Java definitions of whitespace.  I'm not
> >sure if it breaks XML's.
> >
> It doesn't. XML defines white space in Production 3 as
> S ::=    (#x20 | #x9 | #xD | #xA)+

I thought so.  Thanks for looking up the spec for me.

> I agree that XML and Unicode and Java are not consistent here. I 
> think JDOM needs to fall on the XML side of the fence. Consequently I 
> suggest rejecting this change.

I agree. 

 - 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