[jdom-interest] Default vs no namespace

Scott M Stark Scott_Stark at displayscape.com
Mon Nov 13 23:38:07 PST 2000

If I have a document with a default namespace, there really is not a
Namespace.NO_NAMESPACE(correct?) and so I would expect:

Document doc = ...;
Element root = doc.getRootElement();
Element child = root.getChildren("SomeChild");

to be equivalent to:
Element child = root.getChildren("SomeChild", Namespace.DEFAULT_NAMESPACE);

This is not the current behavior and there is no Namespace.DEFAULT_NAMESPACE
definition. Does this behavior make sense and should there be a default namespace
reference constant?

More information about the jdom-interest mailing list