HI All,

The following snippet gives me the unused namespace prefix (in this case
ns), I need to ignore such unused namespace prefixes in the output

Query

declare namespace ns="http://somewhere.something.com";;
xdmp:document-insert
(
"/text.xml",
<ns:root>
<child xmlns="http://anywhere.anything.com";></child>
</ns:root>
);
doc("/text.xml")//*:child

Result

<child xmlns:ns="http://somewhere.something.com"; xmlns="
http://anywhere.anything.com"/>

Thanks in advance!
Raghu
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to