[XOM-interest] Including global namespaces in local nodes

Andrei Ionita a.ionita at jacobs-university.de
Wed Jul 4 11:35:01 EDT 2007


Dear all,

I am querying for certain node paths in an XML document tree, afterwards
intending to display them in application/xml format. But some subtrees have
not declared locally certain namespaces, and thus I am getting namespace
errors. I am writing a servlet, and I'm printing at a PrintWriter variable
using the toXML() method.

A way of obtaining all namespace declarations of the original document and
including them in a new document that has the result of the query would
solve the problem.

Thanks,
Andrei


More information about the XOM-interest mailing list