Loading TOC...

MarkLogic 9 Product Documentation
xdmp.documentGetProperties

xdmp.documentGetProperties(
   uri as String,
   property as xs.QName
) as Sequence

Summary

Returns the property values for a document's property. Throws XDMP-DOCNOTFOUND if there is no document at the specifed URI.

Parameters
uri The document URI.
property The property name. This is the QName of the top-level property element in the specified properties document.

Example

  xdmp.documentGetProperties(
         "http://example.com/foo.xml",
         fn.QName("http://examples.com/","priority"))
   => <priority xmlns="http://examples.com/">5</priority>

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