xdmp.uriFormat( uri as String ) as String
Returns the format of the given URI as matched in the mimetypes configuration.
Parameters | |
---|---|
uri | The document URI. |
xdmp.uriFormat("example.txt"); => text
xdmp.uriFormat("example.json"); => json
xdmp.uriFormat("example.xml"); => xml
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.