MarkLogic 10 Product Documentation
xdmp:node-metadata-value

xdmp:node-metadata-value(
   $node as node(),
   $keyName as xs:string
) as xs:string?

Summary

Returns the metadata value of a node for a particular key.

Parameters
node The node whose metadata are to be returned.
keyName Name of the key for the metadata.

Example

xdmp:node-metadata-value(fn:doc("/foo.xml"), "a")
=> Metadata of key "a" on document node /foo.xml
Powered by MarkLogic Server | Terms of Use | Privacy Policy