Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:document-get-metadata-value

xdmp:document-get-metadata-value(
   $uri as xs:string,
   $keyName as xs:string
) as xs:string?

Summary

Returns the metadata value of a given document.

Parameters
uri The document URI.
keyName Name of the key for the metadata.

Example

xdmp:document-get-metadata-value("/foo.xml", "a")
=> Metadata of key "a" on /foo.xml

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