[MarkLogic Dev General] XDMP-CHILDLINK error

Prasanth N V R prasanth.nvr04 at gmail.com
Thu Jan 14 10:36:17 PST 2016


I have 4000+ nodes in a document. Below is the structure of the document
and loaded under "/test/testDocument.xml".


If a node name matches my input, then I will do a xdmp:node-replace of that.
let $result := cts:search(my search query goes here)
return xdmp:node-replace($result/category,<category>newCategory</category>

When I try to do node replace, am getting error like,
*XDMP-CHILDLINK:* (err:XPTY0004) *Invalid child link node*

Your help is much appreciated!

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

More information about the General mailing list