Loading TOC...

MarkLogic 9 Product Documentation
xdmp:document-set-property

xdmp:document-set-property(
   $uri as xs:string,
   $prop as element()
) as empty-sequence()

Summary

Sets a property on a document. If any properties with the same property QName exist, they are replaced with the new property. If no properties exist with the same QName, the new property is added.

Parameters
uri The document URI for the property setting.
prop The property to set.

Example

xdmp:document-set-property(
  "http://marklogic.com/a/example.xml",
  <priority xmlns="http://example.com">5</priority>)

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.