[jdom-interest] Re: SAXBuilder enhancement request /2

Elliotte Rusty Harold elharo at metalab.unc.edu
Sat Mar 30 04:13:22 PST 2002

At 2:40 AM -0800 3/30/02, Dennis Sosnoski wrote:
>From a quick look at the code this appears to remove character data 
>consisting only of whitespace separating elements - it doesn't strip 
>leading and trailing whitespace from the character data content of 
>an element. It might be good to change the class description to make 
>this clear. :-)

White space trimming from elements that contain non-white space data 
seems even more dangerous to me than removing white-space only nodes. 
Plus there's less of a use-case for it. It's not like it's all that 
hard to call String.trim(). I propose that JDOM *not* include any 
trimming functionality.

| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|             http://www.cafeconleche.org/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      |
|  Read Cafe con Leche for XML News: http://www.cafeconleche.org/    |

More information about the jdom-interest mailing list