Display problem when loading from XML

I have an ASP page that creates the XML and does a Response.Write and outputs the XML to load the scheduler. In some cases it works fine and in other cases I get a popup that says “The page at xyz says:” and then all of the XML.

Any idea how to fix this?


Such alert is displayed when there is something wrong with the xml file. Please check that

  1. xml is returned as xml content type
  2. Open link which returns xml simply in the browser, does browser report some errors?

Kind regards,

The XML reports no errors in firebug.

here is the link to the page that produces the XML:


The odd thing is that it works fine in IE, never in Chrome, and hit or miss depending on the computer in firefox.

Response contains next headers


To work correctly, content type need to be changed to text/xml

That did it!