
dls:document-remove-properties( $uri as xs:string, $property-names as xs:QName* ) as empty-sequence()
This function removes the specified properties from the named document.
Note that properties are not maintained in version history unless changes are also made to the content of the document.
| Parameters | |
|---|---|
| uri | The URI of the document. |
| property-names | The properties to be removed. |
dls-user role is required to run
this function, or the privilege:http://marklogic.com/xdmp/privileges/dls-user
xquery version "1.0-ml";
import module namespace dls = "http://marklogic.com/xdmp/dls"
at "/MarkLogic/dls.xqy";
dls:document-remove-properties(
"/foo/bar/baz.xml",
(fn:QName("http://marklogic.com/xdmp/property", "priority"),
fn:QName("http://marklogic.com/xdmp/property", "status")))
(: The <priority> and <status> properties are removed from the
'baz.xml' document. :)
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.