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