Hi All,

How do I perform a node-child-insert to a node? The node value is below.
I need to do this without inserting this node into the database.

let $node := <query xmlns="http://marklogic.com/appservices/search";>
<and-query>
    <collection-constraint-query>
      <constraint-name>type</constraint-name>
      <uri>xml</uri>
    </collection-constraint-query>
</and-query>
</query>

let $constraint := <range-constraint-query>
    <constraint-name>country</constraint-name>
    <value>FRA</value>
</range-constraint-query>
return
xdmp:node-insert-child($node//collection-constraint-query,  $constraint)

Thanks,
Sini
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to