Peter Murray-Rust
2011-05-09 20:56:33 UTC
I have been processing XOM using XInclude and have somehow ended up with
XInclude namespace declarations on nodes, as in:
<module xmlns="http://www.xml-cml.org/schema" xmlns:xi="
http://www.w3.org/2001/XInclude">
...
</module>
I'd like to get rid of them, ideally with XPath, but my reading of XOM
suggests that I cannot obtain namespace declarations with XPath. If I can't
do it this way is there a programmatic way of getting rid of them?
P.
XInclude namespace declarations on nodes, as in:
<module xmlns="http://www.xml-cml.org/schema" xmlns:xi="
http://www.w3.org/2001/XInclude">
...
</module>
I'd like to get rid of them, ideally with XPath, but my reading of XOM
suggests that I cannot obtain namespace declarations with XPath. If I can't
do it this way is there a programmatic way of getting rid of them?
P.
--
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069
Peter Murray-Rust
Reader in Molecular Informatics
Unilever Centre, Dep. Of Chemistry
University of Cambridge
CB2 1EW, UK
+44-1223-763069