[jdom-interest] no getChildTextNormalize() ?

Sasha Bilton Sasha.Bilton at alisonassociates.com
Wed Sep 26 08:57:40 PDT 2001


> -----Original Message-----
> From: Alex Rosen [mailto:arosen at silverstream.com]
> Sent: 26 September 2001 16:51
> To: 'Sasha Bilton'; jdom-interest at jdom.org
> Subject: RE: [jdom-interest] no getChildTextNormalize() ?
> 
> 
> > the get*Trim methods are a god send if, like me, you are 
> handling hand
> > written XML.
> 
> ... until you run into a situation where extra whitespace is 
> meaningful, in
> which case these methods will lose important data.

True, however I use only the Trim method which drops the spaces at the front
and back that are usually added to make the tag more readable. 
 
<snip>

> It's slightly less convenient for those that want to use it, 
> but I think
> more appropriate for a generic XML handling library like JDOM.

Hmmm... I'd describe JDom as a convenient generic API, with the emphasis on
convenience. DOM is a generic API, without the emphasis.

As the Dead Kennedys said "Give me convenience, or give me death!"  

Sasha


_________________________________________________________________________

Alison Associates

The information contained in this e-mail and any attached files is intended only for the use of the person(s) to whom it is addressed and may be privileged, confidential and exempt from disclosure under applicable law. The views of the author may not necessarily reflect the views of the Company. If you are not the intended recipient please do not copy or convey this message or any attached files to any other person but delete this message and any attached files and notify us of incorrect receipt via e-mail to mailadmin at alisonassociates.com. 

_____________________________________________________________________
This message has been checked for all known viruses by MessageLabs.



More information about the jdom-interest mailing list