MarkLogic 10 Product Documentation
xdmp.uriFormat

xdmp.uriFormat(
   uri as String
) as String

Summary

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

Parameters
uri The document URI.

Example

  xdmp.uriFormat("example.txt");
  => text

Example

  xdmp.uriFormat("example.json");
  => json

Example

  xdmp.uriFormat("example.xml");
  => xml
Powered by MarkLogic Server | Terms of Use | Privacy Policy