[jdom-interest] getBooleanValue() in Attribute

Elliotte Rusty Harold elharo at metalab.unc.edu
Tue May 14 11:06:00 PDT 2002


At 6:52 PM +0200 5/14/02, Laurent Bihanic wrote:


>Parsers are required to report trimmed values. So this would apply 
>only to attribute values set directly through JDOM. This brings us 
>back to the thread about normalizing attribute values according to 
>their type. A first step could be to immediately apply CDATA 
>normalization in Attribute.setValue().
>

No, that's incorrect. Parsers only normalize attribute values when 
the type is not CDATA or UNDECLARED. For many attributes, especially 
in invalid documents with no DTD, values are not normalized. Thus 
this is really a separate issue.
-- 

+-----------------------+------------------------+-------------------+
| 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