Loading TOC...

MarkLogic 12 EA 2 Product Documentation
xdmp:uri-format

xdmp:uri-format(
   $uri as xs:string
) as xs:string

Summary

Returns the format of the given URI as matched in the mimetypes configuration.

Parameters
uri The document URI.

Example

  xdmp:uri-format("example.txt")
  => text

Example

  xdmp:uri-format("example.xml")
  => xml

Example

  xdmp:uri-format("example.json")
  => json

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