Re: XML MIME type recognition
- From: Krzysztof Kosiński <tweenk pl gmail com>
 
- To: nautilus-list gnome org
 
- Subject: Re: XML MIME type recognition
 
- Date: Tue, 27 Jan 2009 06:53:54 -0800 (PST)
 
You should not use globs and magic, but the <root-XML/> element in the
mimetype definition to recognize your file. Look it up in the
shared-mime-info specification - it has two attributes: localName tells the
name of the root element, and namespaceURI the root namespace. However, this
element expects the XML file to have a root namespace defined (like all
correct XML documents should), which your example doesn't.
Is this related to http://www.openspml.org/ ?
Regards, Krzysztof Kosiński
-- 
View this message in context: http://www.nabble.com/XML-MIME-type-recognition-tp21217597p21686851.html
Sent from the Gnome - Nautilus mailing list archive at Nabble.com.
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]