Hi Siva,

I am not sure what you are trying to achieve exactly but if you don't want
to use node-replace and have a fixed structured existing XMLs then you can
go for typeswitch() function to add the new namespace to the book node.

Hope it helps!

Thanks,
Shabana

Thanks and Regards,
Shabana Khan
LinkedIn <https://in.linkedin.com/pub/shabana-khan/40/229/454>




On Mon, Aug 28, 2017 at 4:42 PM, Mani, Sivasubramani (ELS) <
s.m...@elsevier.com> wrote:

> HiTeam,
>
>
>
> I need to add one more attributes to the old XML tag. Without using  node
> replacement. But I don’t know how to add it, kindly suggest XDMP methods
> regarding the same.
>
>
>
>
>
> eg: My file is book.xml
>
> <bib>
>
>     <book xmlns:doc="http://www.team.com/xml/document/schema"; 
> xmlns:dp="http://www.team.com/xml/common/doc-properties/schema";>
>
>         <title>TCP/IP Illustrated</title>
>
>         <author><last>Stevens</last><first>W.</first></author>
>
>         <publisher>Addison-Wesley</publisher>
>
>         <price>65.95</price>
>
>     </book>
>
>
>
>     <book >
>
>         <title>Advanced Programming in the Unix environment</title>
>
>         <author><last>Stevens</last><first>W.</first></author>
>
>         <publisher>Addison-Wesley</publisher>
>
>         <price>65.95</price>
>
>     </book>
>
>
>
> </bib>
>
>
>
>
>
> I need to add one more name space (i.e. xmlns) in the above xml without
> using node replacement. Kindly suggest xdmp methods regarding the same.
>
>
>
>
>
>
>
> Thanks & Regards,
>
> Siva
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to