You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Max Pimm <ma...@gmail.com> on 2013/05/08 14:29:42 UTC
Importing a document and moving the namespace
This is probably an easy one...
In my schema i have an element that can also be used as a root element of
another document.
I am trying to import an external file representing the other document into
an element in my document.
The file representing the other document is something like
<ns:otherDoc xmlns:ns="http://../otherDoc">
<someElement>a</someElement>
</ns>
This gets imported fine but the namespace is written in the element where
it is imported and i would like to move the namespace declaration to the
root of my document.
I've tried varios xmlOptions to no avail.
What am i missing?
Thanks
Max