[jdom-interest] ElementFilter

Elliotte Rusty Harold elharo at metalab.unc.edu
Sat May 11 08:52:06 PDT 2002


At 4:35 PM -0700 5/10/02, Jason Hunter wrote:

>One thing though.  The above says EF(String) finds elts in any
>namespace.  That's counter to how getChildren(String) behaves.
>Shouldn't the filter match?
>

That makes sense to me. We've been nicely consistent about having a 
raw name imply that the element/attribute is in no namespace. There's 
no reason to break that metaphor here. If someone really does want to 
search for paragraph elements in any namespace it's easy enough to 
write a custom filter that does that. +1.
-- 

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