Loading TOC...

xdmp:document-get-collections

xdmp:document-get-collections(
   $uri as xs:string
) as xs:string*

Summary

Returns the collections to which a given document belongs.

Parameters
$uri The document URI.

Example

xdmp:document-get-collections("chapter5.xml")
=> ("http://marklogic.com/all-books",
        "http://marklogic.com/xml-books")

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.