Re all

Martijn van Groningen (JIRA)  at "Sun, 30 May 2010 17:59:36 -0400 (EDT)" wrote:
 MvG> I've added Numbers support to the patch. 

 MvG> Pages and Numbers have both the same file content file (index.xml) in the 
compressed file (*.pages / *.numbers). This makes detecting formats a bit more 
difficult. I've solved this by comparing the root element which is different in 
both formats. I'm not really happy with this solution, but it seems the only 
solution. If someone has a nicer solution for this please share. A Keynote file 
has index.apx1 as content file, which makes it much easier to determine the 
format.

This is only method to distinguish these mime types - I use same approach
in my media type detection library

-- 
With best wishes, Alex Ott, MBA
http://alexott.blogspot.com/           http://alexott.net
http://alexott-ru.blogspot.com/

Reply via email to