MarkLogic Server 11.0 Product Documentation
cts:document-root-query

cts:document-root-query(
   $root as xs:QName
) as cts:document-root-query

Summary

Returns a query matching documents with a given root element.

Parameters
root The root QName to query.

Example

  cts:document-root-query(xs:QName("root"))
  => Match documents with root element 'root'.
Powered by MarkLogic Server | Terms of Use | Privacy Policy