Re: [xml-dev] Why does my browser treat the XML Schema document at a URL as an XML document?

From
David Carlisle <>
To
"Rushforth, Peter" <>
Date
2012-09-10T18:48:04Z
ID
<>
Thread
Re: [xml-dev] Why does my browser treat the XML Schema document at a URL as an XML document?
On 10/09/2012 15:49, Rushforth, Peter wrote:
> But there's no reason it should be limited to error responses.  Why
> not provide a text/html version of an 'application/xml' or
> 'application/atom+xml' resource?
> http://geogratis.gc.ca/api/en/nrcan-rncan/ess-sst/ can be negotiated
> as html, xml, atom, json etc., via Accept.

Mainly because while serving them all from the same URI might seem a
neat trick it has few practical advantages over serving them from
different URI, and the latter is much easier to set up as it only
requires rights to upload files to the server it doesn't require server
configuration, and serving them from the same URI makes it harder to
link to them from a web page as it inevitably means that you'll get the
html version in a browser when you might in some circumstances want the
html or json.

David

-- 
google plus: https:/profiles.google.com/d.p.carlisle