Muraad/Mime-Detective

XML File Type

Opened this issue · 0 comments

Hi,

I have tried to use the below Definition to get the Mimetype for an XML file. I looked at the MimeTypes.cs for the XML ByteArray definition as below in DEC format instead of the HEX, but I am not getting the correct ByteArray Sequence for some XML file cases

private static readonly byte[] XML = { 114, 115, 105, 111, 110, 61, 34, 49, 46, 48, 34, 63, 62 }; // converted from HEX to DEC from MimeTypes.cs

private static readonly byte[] XML = { 60, 99, 101, 114, 116, 105, 102, 105, 99, 97 };// this works in most cases except for some

Any suggestions?