[MarkLogic Dev General] Need to remove unused xml namespace prefix

Asit Nautiyal asitnautiyal at outlook.com
Tue Jul 21 10:30:58 PDT 2015

Hi Raghu,
Here you want to keep the text.xml as part of "http://somewhere.something.com" namespace and want to make its child element (child) part to other namespace ""http://anywhere.anything.com" , correct me, if I am wrong! If this is the case then, you are making this xml file as ambiguous. In xml file , all child elements should belongs to same namespace as its root element, that's why we have concept of namespace.
Regards,Asit Nautiyal  Date: Tue, 21 Jul 2015 11:07:53 -0400
From: raghupathy.visweswaran at gmail.com
To: general at developer.marklogic.com
CC: nagendrancud at gmail.com
Subject: [MarkLogic Dev General] Need to remove unused xml namespace prefix

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
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
<child xmlns:ns="http://somewhere.something.com" xmlns="http://anywhere.anything.com"/>

Thanks in advance!Raghu

General mailing list
General at developer.marklogic.com
Manage your subscription at: 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20150721/8e2c0f67/attachment.html 

More information about the General mailing list