The RDFXMLDataSource just feeds the data to the parser, which is left to guess how to parse it. So the parser looks at the MIME type of the data, which it ends up having to get from the extension. Shouldn't the RDFXMLDataSource explicitly set the type hint on the channel (prior to calling Open())? See http://lxr.mozilla.org/seamonkey/source/netwerk/base/public/nsIChannel.idl#112
Since we want to implement further serialisations of RDF, like N-Triples, there is no real way to say that we want to have XML/RDF. That this is ok for creating files comes from the fact that that throws an NS_ERROR_FILE_NOT_FOUND very early in the game, and we never try to get the mimetype for that. I'm not really sure why the content sniffing doesn't get us text/xml though.
OS: Windows 2000 → All
Hardware: PC → All
You need to log in before you can comment on or make changes to this bug.