[jdom-interest] JDOM && Jaxen

Elliotte Rusty Harold elharo at metalab.unc.edu
Thu Aug 2 04:44:16 PDT 2001


At 11:55 PM -0400 8/1/01, bob mcwhirter wrote:


>Yes, to be accurate, it's purely namespace declarations I'm looking
>for. 
>

You can get this with JDOM, but you can't get it with XPath. To quote from section 5.3 of the XPath 1.0 specification:

There are no attribute nodes corresponding to attributes that declare namespaces 

Again, JDOM's model is quite close to XPath's model; not as close as I like, but namespaces just aren't one of the areas where they're significantly different. 
-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/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.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list