XML vs HTML

Jaime Chang jchang at idealcorp.com
Tue Dec 13 22:44:25 EET 2005


I have an XML file that starts with the following tags:

<?xml version="1.0"?>

<PLAY>
<TITLE>data</TITLE>

<FM>
<P>data</P>
<P>data</P>
<P>data</P>
<P>more data.</P>
</FM>

<PERSONAE>
<TITLE>data</TITLE>


However, it being detected as an HTML file because one of the magic 
numbers for text/html is the TITLE tag

I believe in this cases, the XML mime should be process before the HTML 
mime. However, this is not possible because the magic file is sorted by 
name. Right?

Is there something in place for this type of issues.

Thoughts??

Thanks,
JC 




More information about the xdg mailing list