[jdom-interest] JDOM && Jaxen

Jason Hunter jhunter at acm.org
Wed Aug 1 15:55:56 PDT 2001

> Yah, sure, it's a useless XPath expression, but it stands between
> us and full XPath compliance.

Is that all?

> > Of course, you can determine the right answer without parentage.
> > XMLOutputter has the ability already to put the namespace decls where
> > they belong.  It requires using a namespace stack to track what's in the
> > hierarchy when examining an element.  It makes moving elements fast and
> > easy and reliable (since their namespaces won't change as a result of
> > placements) but makes output have to do a bit more examination to
> > determine where decls are to be placed.
> >
> > Is any of this helpful?  :-)
> Maybe.  I guess I'm trying to determine is:
>         What, if any, namespaces are declared for element X.

Well, you have elt.getAdditionalNamespaces() to know which are declared
on an element.  Whether that element's own namespace (the one it's in)
is declared at that level depends on if it's necessary or not based on
what's above it in the hierarchy.


More information about the jdom-interest mailing list