
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