MarkLogic 9 Product Documentation
xdmp:document-set-properties

xdmp:document-set-properties(
   $uri as xs:string,
   $props as element()*
) as empty-sequence()

Summary

Sets the properties of a document to the given sequence of elements, replacing any properties that already exist on the document. To preserve existing document properties, use xdmp:document-add-properties. Each element QName is the property name and the element value is the property value. Modifying properties requires update permissions on a document.

Parameters
uri The URI of the document.
props The properties to set. Replaces any properties already set on the document.

Example

  xdmp:document-set-properties(
         "example.xml",
         (<priority>1</priority>,
          <status>unedited</status>))
  => ()
Powered by MarkLogic Server | Terms of Use | Privacy Policy