Loading TOC...

xdmp.documentSetProperty

xdmp.documentSetProperty(
   $uri as String,
   $prop as Node
) as null

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

declareUpdate();
xdmp.documentSetProperty("/example.json",
   fn.head(xdmp.unquote('<priority>2</priority>')).root);
=> ()

Comments

    Powered by MarkLogic Server 7.0-4.1 and rundmc | Terms of Use | Privacy Policy