[thelist] Generating XML with ASP

Simon Willison simon at incutio.com
Wed Apr 3 08:06:01 CST 2002

Edward George wrote:

>I'm generating an XML from a log file pulled from the server,
>I've mapped .xml to asp.dll and am scripting from within a *.xml file.
>The outputted xml is fully formed, validating xml but explorer refuses
>to display the file as it normally would with a straight xml file.
>If however I were to write an xml file onto the server with the
>generated content and load that back in, Explorer displays it as normal
>in the tree diagram way.
>I've also set response.contenttype="text/xml" as the first command but
>to no avail.
>Any ideas why this happens?
Do you have an online URL we can look at?

The best way to troubleshoot this kind of thing is to have a look at the
HTTP headers being sent by the server. Either use a command line browser
like lynx ( lynx -mime_header http://slashdot.org/ gives random Futurama
quotes... ) or use this site:

http://webtools.mozilla.org/web-sniffer/view.cgi?url=http://evolt.org <--
replace with your URL

With any luck that should give you enough information to figure out
what's going wrong.

More information about the thelist mailing list