[jdom-interest] ID id attributes

Elliotte Rusty Harold elharo at metalab.unc.edu
Wed May 2 09:02:47 PDT 2001


At 10:24 PM -0700 5/1/01, elephantwalker wrote:
>Just fund a little feature, is this one known?
>
>If you element.getAttribute("id",namespace) and the attribute name  is 'ID'
>verses 'id', you will get different results. Is there something special
>about ID, does it have to be capitalized? I thought the only special bit
>about id was it had to be UNIQUE in the document.
>

Nothing special. XML is case-sensitive so JDOM is case-sensitive. 
"ID" and "id" are not the same thing.
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
|                  The XML Bible (IDG Books, 1999)                   |
|              http://metalab.unc.edu/xml/books/bible/               |
|   http://www.amazon.com/exec/obidos/ISBN=0764532367/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://metalab.unc.edu/javafaq/ |
|  Read Cafe con Leche for XML News: http://metalab.unc.edu/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list