readMediaSubtypeFile

Read MIME type from MEDIA/SUBTYPE.xml file (e.g. image/png.xml).

@trusted
MimeType
readMediaSubtypeFile
(
string filePath
)

Return Value

Type: MimeType

mime.type.MimeType parsed from xml definition.

Throws

mime.xml.XMLMimeException on format error or std.file.FileException on file reading error.

See Also

mime.xml.readMediaSubtypeXML 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.

Meta