Microsoft KB Archive/234207

= PRB: XML Viewer Is Not Used for XML File =

Article ID: 234207

Article Last Modified on 10/12/2001

-

APPLIES TO


 * Microsoft Internet Explorer 5.0

-



This article was previously published under Q234207



SYMPTOMS
When Internet Explorer navigates to an XML file, it does not display the XML in the browser with the default XML viewer.



CAUSE
The Web server and the XML file are not specifying enough information for Internet Explorer to detect that the file contains XML text.



RESOLUTION
Internet Explorer requires at least one of the following points to correctly detect that a file contains XML text and display the file in the built-in XML viewer:


 * The server-specified HTTP Content-Type header is equal to "text/xml".
 * The file ends in an .xml extension.
 * The beginning of the file contains the standard XML declaration beginning " You must add this line of code to the absolute top of the ASP page.

A standard XML declaration may appear as follows: 

Additional query words: XML

Keywords: kbprb kbmsxmlnosweep KB234207

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.