[jdom-interest] Is JDOM dying?

Bradley S. Huffman hip at a.cs.okstate.edu
Sun Mar 16 17:27:46 PST 2003

Jason Hunter writes:

> Now, I do think within the "meaning" model it would be handy to have an
> elt.getChild("foo") that didn't require always passing in the same old
> namespace like elt.getChild("foo", SAMEOLDNS).  That's what trips up
> most people.  Unfortunately we shouldn't treat no namespace the same way
> as a parent namespace.  It's inconsistent.

If anything I'd get rid of all methods that default to no namespace so that
one always specifies a namespace, even if it is always NO_NAMESPACE. Sure
it a few more characters but then there is no ambiguity about what is
actually meant. Never sacrific characters for clarity :)

> One option is to have a
> wildcard like elt.getChild("foo", ANY) which follows the XQuery (XPath?)
> precedent of using a * to match any namespace such as
> /*:foo/*:bar/text().  But is ANY better than SAMEOLDNS?  Not really.

Filters :)


More information about the jdom-interest mailing list