[jdom-interest] Namespace and getChild()
Michael Kay
mike at saxonica.com
Fri Jan 12 16:16:45 PST 2007
> It seems like that since when the XML is parsed, child elements that
don't have a namespace defined inherit their parent elements namespace
Your premise is wrong. Given:
<x:a xmlns:x="abc">
<b/>
</x:a>
the b element is in no namespace. A child element with no prefix goes in the
default namespace, not the namespace of its parent.
In any case, suggesting improvements to an API that obviously can't be
changed at this stage of the game is rather futile.
Michael Kay
http://www.saxonica.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.jdom.org/pipermail/jdom-interest/attachments/20070113/407e9bf5/attachment.htm
More information about the jdom-interest
mailing list