Object doesn't support this property of method for getElementsByTagName
Posted on 2004-04-16
I have this code within the <head> tag of my html page:
var xmlDoc = new ActiveXObject("Msxml2.DOMDocument.4.0");
xmlDoc = xmlDoc.load("test.xml");
var testLoad = xmlDoc.getElementsByTagName("state");
I'm consistently getting a Object doesn't support this property or method error indicating the error is with var testLoad = xmlDoc.getElementsByTagName("state"); I tried it with the full path to the xml document and got the same results. I have MSXML 4.0 sp2 installed on my computer.
Why am I getting this error?