temporal:node-delete( $temporal-collection as xs:string, $old as node(), [$temporal-doc-uri as xs:string] ) as empty-sequence()
Deletes a node from the database. On-the-fly constructed nodes cannot be deleted.
Parameters | |
---|---|
temporal-collection | The URI for the protected temporal collection in which the document is to belong. This must have been previously created by the temporal:collection-create function. All versions of the temporal document will be associated with this temporal collection. |
old | The node to be deleted. |
temporal-doc-uri | The URI of the temporal document to be updated. |
temporal:document-insert("tempcol","/example.xml", <a><b>bbb</b></a>); temporal:node-delete("tempcol",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.