G
gimme_this_gimme_that
Why is it that this works :
root.getChild("detail",NS).getChild("site-export").getChild("category-list").addContent((Content)c);
But this does not :
Element detail = root.getChild("detail",NS);
detail.getChild("category-list").addContent((Content)c);
// There are no namespace prefixes for elements below detail.
In other words it looks like to get children Elements
when using Namespaces I have to navigate all the way down
to the specific node instead of having JDOM find the nearest
node having the name.
root.getChild("detail",NS).getChild("site-export").getChild("category-list").addContent((Content)c);
But this does not :
Element detail = root.getChild("detail",NS);
detail.getChild("category-list").addContent((Content)c);
// There are no namespace prefixes for elements below detail.
In other words it looks like to get children Elements
when using Namespaces I have to navigate all the way down
to the specific node instead of having JDOM find the nearest
node having the name.