Loading TOC...

MarkLogic 12 EA 1 Product Documentation
cts:document-format-query

cts:document-format-query(
   $format as xs:string
) as cts:document-format-query

Summary

Returns a query matching documents of a given format.

Parameters
format Case insensitve one of: "json","xml","text","binary". This will result in a XDMP-ARG exception in case of an invalid format.

Example

  cts:uris((),(),cts:document-format-query("xml"))
  => .. Return all XML documents URIs.

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