Loading TOC...

MarkLogic Server 11.0 Product Documentation
admin.mimetype

admin.mimetype(
   name as String,
   extensions as String,
   format as String
) as element(mt.mimetype)

Summary

This function constructs a mimetype specification.

Parameters
name The name of the mimetype.
extensions The extension(s) for the mimetype.
format A valid format for the mimetype. Must be on of: binary,xml, or text.

Example

  
  const admin = require('/MarkLogic/admin.xqy');
  admin.mimetype("application/foo","foo bar","binary")

   //returns the mimetype specification 
  

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