MarkLogic Server 11.0 Product Documentation
xdmp:document-get-properties

xdmp:document-get-properties(
   $uri as xs:string,
   $property as xs:QName
) as element()*

Summary

Returns the property values for a document's property. Throws XDMP-DOCNOTFOUND if there is no document at the specified 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:document-get-properties(
         "http://example.com/foo.xml",
         fn:QName("http://examples.com/","priority"))
   => <priority xmlns="http://examples.com/">5</priority>
Powered by MarkLogic Server | Terms of Use | Privacy Policy