MarkLogic 10 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
Powered by MarkLogic Server | Terms of Use | Privacy Policy