W3C home > Mailing lists > Public > public-webapi@w3.org > April 2006

[XHR] What mime types should trigger XML parsing?

From: Maciej Stachowiak <mjs@apple.com>
Date: Sat, 22 Apr 2006 17:34:08 -0700
Message-Id: <42C9E3BA-FA45-4D8B-8212-C0B81ACE47FF@apple.com>
To: "Web APIs WG (public)" <public-webapi@w3.org>

The draft says:

"Otherwise, if the Content-Type header contains a media type  
(ignoring any parameters) that is either text/xml, application/xml,  
or ends in +xml, it must be an object that implements the Document  
interface representing the parsed document. If the document was not  
an XML document, or if the document could not be parsed (due to an  
XML well-formedness error or unsupported character encoding, for  
instance), it must be null."

Should this be taken to mean that for any other Content-Type,  
implementations MUST NOT attempt to parse as XML? If so, please say  
that. Optionally allowing XML parsing for types not specifically  
mentioned would be bad for interoperability.

Also, consider the following media types that represent XML data of  
some form, but are not text/xml, application/xml, or a type that ends  
in +xml. Some of these are unofficial or obsolete:


Of these, I only know for sure that text/xsl is in common use for  
sending XML content, even though it is unofficial and technically  

Received on Sunday, 23 April 2006 00:34:12 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:21 UTC