[MarkLogic Dev General] Reg: Issue with xdmp:node-insert-child()

Gampa, Sriram Sriram.Gampa at hmhpub.com
Fri Aug 10 14:22:17 PDT 2012

Hi All,

I'm having an issue while inserting an element into a node using xdmp:node-insert-child().

My xml structure is as below

<version-info xmlns="http://namespace">

I'm trying to insert <parent-id> 13242682898790</parent-id> into the <version-info> as child using the xdmp:node-insert-child() as part of my code but the node is not getting inserted into the version-info xml. But when I tried to the same through CQ its working fine.

let $version-info-uri := "/content/documents/sd/62211250/ ABCD13255DEFG-version-info-7.xml"
let $log1 := xdmp:log(fn:concat("Update Note: Version Info URI", $version-info-uri))
let $version-info := fn:doc($version-info-uri)/pce:version-info
xdmp:log(fn:concat("version-info before", $version-info)),
xdmp:log(fn:concat("version-info after", $version-info)),

Could please let me know what is the issue with the above code.

Sriram Gampa
Off: 407-345-2386 |Cell: 612-867-3232|email: Sriram.Gampa at hmhpub.com

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://developer.marklogic.com/pipermail/general/attachments/20120810/ffe0ff81/attachment.html 

More information about the General mailing list