
xdmp:node-get-info( $node as node(), [$output-kind as xs:string*] ) as
This function returns information about the node i.e. the node-repid, uniquekey, compressed tree size and database of an input node. Database is true if the node is read from the database, false otherwise.
xdmp:node-database(doc("http://marklogic.com/document"),"xml")
==>
<xdmp:node-info xmlns:xdmp="http://marklogic.com/xdmp">
<compressed-tree-size>78</compressed-tree-size>
<node-rep-id>0</node-rep-id>
<node-unique-key>152469828419602699</node-unique-key>
<database-node>1</database-node>
</xdmp:node-info>
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.