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"> <id>ABCD13255DEFG</id> <additions/> <updates/> <deletes/> </version-info> 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:node-insert-child($version-info,<nmsp:parent-id>{$parent-id}</nmsp:parent-id>), xdmp:log(fn:concat("version-info after", $version-info)), xdmp:log(fn:concat("parent-standard-id::",$parent-id)), Could please let me know what is the issue with the above code. Thanks, Sriram Gampa Off: 407-345-2386 |Cell: 612-867-3232|email: [email protected]
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
