Loading TOC...

xdmp:node-metadata-value

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

Summary

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

Parameters
$uri 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

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

Comments

The commenting feature on this page is enabled by a third party. Comments posted to this page are publicly visible.