Function readMediaSubtypeFile
Read MIME type from MEDIA/SUBTYPE.xml file (e.g. image/png.xml).
Returns
MimeType
parsed from xml definition.
Throws
XMLMimeException
on format error or std.file.FileException on file reading error.
See Also
Note
According to the spec MEDIA/SUBTYPE.xml files have magic, root-XML and glob fields removed. In reality glob fields stay untouched, but this may change in future and this behavior should not be relied on.