xdmp:node-delete( $old as node() ) as empty-sequence()
Deletes a node from the database. On-the-fly constructed nodes cannot be deleted.
Parameters | |
---|---|
old | The node to be deleted. |
xdmp:document-insert("/example.xml", <a><b>bbb</b></a>); xdmp:node-delete(doc("/example.xml")/a/b); doc("/example.xml") => <a/>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.