<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.uriContentType.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.uriContentType</api:function-name><api:suggest>xdmp.uricontenttype</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>uricontenttype</api:suggest><api:function-link mode="xquery" fullname="xdmp:uri-content-type">/apidoc/8.0/xdmp:uri-content-type.xml</api:function-link><api:function mode="javascript" name="uriContentType" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.uriContentType"><api:summary>
  Returns the content type of the given URI as matched in the mimetypes
  configuration. xdmp:content-type continues to work too.
</api:summary><api:params><api:param name="uri" type="xs:string"><api:param-description>
    The document URI.
  </api:param-description><api:param-name>uri</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  xdmp.uriContentType("example.txt");
  =&gt; text/plain
</pre></api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  xdmp.uriContentType("example.xml");
  =&gt; application/xml
</pre></api:example><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
  xdmp.uriContentType("example.doc");
  =&gt; application/msword
</pre></api:example></api:function></api:function-page>