Loading TOC...

MarkLogic 9 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

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