Loading TOC...

MarkLogic 12 EA 1 Product Documentation
xdmp.documentAddProperties

xdmp.documentAddProperties(
   uri as String,
   props as Node[]
) as null

Summary

Adds a sequence of properties to the properties of a document.

Parameters
uri The URI of the document.
props The properties to add.

Example

declareUpdate();
var props = [fn.head(xdmp.unquote('<priority>1</priority>')).root,
             fn.head(xdmp.unquote('<status>unedited</status>')).root];
xdmp.documentAddProperties(
       "/a.xml", props);
=> ()

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