Error reading XML file
Posted on 2004-09-07
This is the error:
Response object error 'ASP 0185 : 80020003'
Missing Default Property
/displayxml.asp, line 30
A default property was not found for the object.
Here is the Code:
var xmlDoc = new ActiveXObject("MSXML.DOMDocument");
var sourceFile = Server.MapPath("xml_file.xml");
// 0 Object is not initialized
// 1 Loading object is loading data
// 2 Loaded object has loaded data
// 3 Data from object can be worked with
// 4 Object completely initialized
if (xmlDoc.readyState != 4);
Response.ContentType = "text/html";
Response.Write(xmlObj); //This is line 30
I know that I should use Response.ContentType = "text/xml"; but I need to get past this ASP error first which is only displayed using text/html
Can anyone spot the problem ?