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/>