Determine the MIME type of a file using XML specificated by the shared-mime-info.
This is still a prototype.
The goal is to implement functions that meet the Shared MIME-info Database specification with client side JavaScript only.
https://specifications.freedesktop.org/shared-mime-info-spec/0.18/ar01s02.html