[jdom-interest] Accessing Child Elements
Peter V. Gadjokov
pvg at c-c-s.com
Wed Sep 6 15:05:58 PDT 2000
Agreed. I just fired off a proposal that is based on that argument (in
fact, I used java type names as an example as well) but has more
intuitive behaviour when no namespace is specified and enforces the
'no weird namespace scoping' notion strongly. I would implement the
neccessary changes if we agree on them.
-pvg
-----Original Message-----
From: Jason Hunter
To: Peter V. Gadjokov
Cc: 'David W. Smiley '; 'jdom-interest at jdom.org '
Sent: 9/6/00 2:34 PM
Subject: Re: [jdom-interest] Accessing Child Elements
> Element.getNamespace() should tell you what namespace an element is
> _currently_ in, a new method is needed to query the namespace an
> element was explicitly declared in.
That's similar to how we started off with JDOM, but it was successfully
argued that an element's namespace is an intrinsic part of that element,
just as a Java class' namespace is a part of that class. As such the
namespace should be held with the class during moves between documents
and moves within a document, and not "inherited" depending on where it's
placed.
-jh-
More information about the jdom-interest
mailing list