Article ID: 257723 - Last Review: May 11, 2006 - Revision: 3.0

FIX: XML Data Island Does Not Load Correctly in Internet Explorer

This article was previously published under Q257723
97989, 93604, 423083

On This Page

Expand all | Collapse all

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:
Object Required.

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  (http://support.microsoft.com/kb/267954/EN-US/ ) 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

  1. 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>&#xa0;</P>
    <input type="button" onClick="Show()" value="Show me the XML"></input>
    </BODY>
    </HTML>
    					
  2. Use Internet Explorer 5.01 to navigate to InlineXML.asp.
  3. 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  (http://support.microsoft.com/kb/239540/EN-US/ ) PRB: XML Viewer Does Not Perform Validation
254643  (http://support.microsoft.com/kb/254643/EN-US/ ) 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:
http://msdn.microsoft.com/ie/ (http://msdn.microsoft.com/ie/)

http://support.microsoft.com/iep (http://support.microsoft.com/iep)
XML Developer Center (http://msdn.microsoft.com/xml/default.asp)


APPLIES TO
  • Microsoft Internet Explorer 5.0
  • Microsoft Internet Explorer 5.01
Keywords: 
kbbug kbfix kbie501presp2fix kbmsxmlnosweep KB257723
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
 

Article Translations

 

Related Support Centers