Loading TOC...

MarkLogic 9 Product Documentation
xdmp:node-uri

xdmp:node-uri(
   $node as node()
) as xs:string?

Summary

Returns the document-uri property of the parameter or its ancestor.

Parameters
node The node whose URI is returned.

Example

xdmp:node-uri(doc("/some/document.xml"))
=> "/some/document.xml"

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