Article ID: 257723
Article Last Modified on 5/11/2006
APPLIES TO
- Microsoft Internet Explorer 5.0
- Microsoft Internet Explorer 5.01
This article was previously published under Q257723
97989, 93604, 423083
SYMPTOMS
When you load an HTML document with an inline XML data island, sometimes the data island does not load correctly. The following error message: appears:
RESOLUTION
To resolve this problem, obtain the latest service pack for Internet Explorer version 5.01. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
267954 How to Obtain the Latest Internet Explorer 5.01 Service Pack
Use the SRC attribute of the data island to point to an XML file or an Active Server Pages (ASP) page that returns XML data instead of embedding the XML data file directly in the data island itself. For example:
<xml src="myXML.xml"></xml> or <xml src="myXML.asp"></xml>
STATUS
This problem was first corrected in Internet Explorer version 5.01 Service Pack 2.This problem was corrected in Internet Explorer 5.5.
MORE INFORMATION
This problem only occurs with Internet Explorer 5.01, and it usually happens when you access the XMLDOM of a large or complex inline XML data island. Internet Explorer 5.0 works correctly.
Steps to Reproduce Behavior
Create an Active Server Pages (ASP) page called InlineXML.asp that is similar to the following:
<%@ Language=VBScript %> <HTML> <HEAD> <Script language="JavaScript"> function Show() { if (docXML.readyState=="complete") { alert(docXML.documentElement.xml); } } </Script> </HEAD> <BODY> <P> Click on the "Show me the XML" button, an alert will comes up showing the xml of the data island. When the XML Data Island is not loaded correctly, a runtime error will be generated instead.</P> <xml id=docXML> <% Response.Write "<Data>" for i=1 to 100 Response.Write "<Node>Node " & i & "</Node>" next Response.Write "</Data>" %> </xml> <P> </P> <input type="button" onClick="Show()" value="Show me the XML"></input> </BODY> </HTML>
- Use Internet Explorer 5.01 to navigate to InlineXML.asp.
- Click the Show me the XML button. Occasionally, Internet Explorer will return the error noted in this article or a similar error.
REFERENCES
For additional information, click the article numbers below to view the articles in the Microsoft Knowledge Base:
239540 PRB: XML Viewer Does Not Perform Validation
254643 PRB: loadXML Method Fails to Process DTD or Schema with Relative Path at the Server Side
For more information about developing Web-based solutions for Microsoft Internet Explorer, visit the following Microsoft Web sites:
Additional query words: XMLDOM
Keywords: kbbug kbfix kbie501presp2fix kbmsxmlnosweep KB257723