![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I've been informed that a webserver sending a XML file is supposed to add "Content-Type: text/xml header". |
#2
| |||
| |||
|
#3
| |||
| |||
|
|
I've been informed that a webserver sending a XML file is supposed to add "Content-Type: text/xml header". This is a reference to information in the HTTP header. There are various tools to inspect the HTTP header, for an example see The W3C web service <http://cgi.w3.org/cgi-bin/headers? url=http://cgi.w3.org/cgi-bin/headers>. This information isn't visible if you "View Source" in your web browser. |
|
You have to configure your web server to generate this header, how to do that depends on your server software and how you store the XML on it. |
|
It would be better, to use "application/xml" instead of "text/xml" by the way. |
#4
| |||
| |||
|
|
... You have to configure your web server to generate this header, how to do that depends on your server software and how you store the XML on it. It would be better, to use "application/xml" instead of "text/xml" by the way. |
|
If an XML document -- that is, the unprocessed, source XML document -- is readable by casual users, text/xml is preferable to application/xml. |
![]() |
| Thread Tools | |
| Display Modes | |
| |