Loading TOC...

xdmp.nodeUri

xdmp.nodeUri(
   $node as Node
) as String?

Summary

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

Parameters
$node The node whose URI is returned.

Example

xdmp.nodeUri(cts.doc("/dog.json"));
=> "http://marklogic.com/document"

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.