Hello!
In my asp code, I have loaded an xml file and am cycling thru the childnodes.
I have a For ...Next loop that goes thru and (for now) should display each item.
It works fine when I reference each item using a static number:
but when I try to reference items using a variable, like this:
I get this error in my browser (IE 6):
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: '[object]'
Can anyone tell me what I'm doing wrong?
Thanks!
In my asp code, I have loaded an xml file and am cycling thru the childnodes.
I have a For ...Next loop that goes thru and (for now) should display each item.
It works fine when I reference each item using a static number:
Code:
response.write objXML.getElementsByTagName("presdesc").item(0).text
but when I try to reference items using a variable, like this:
Code:
For intCounter = 0 to (objXML.documentElement.childNodes.length + 1)
response.write objXML.getElementsByTagName("presdesc").item(intCounter).text
intCounter = intCounter + 1
Next
I get this error in my browser (IE 6):
Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: '[object]'
Can anyone tell me what I'm doing wrong?
Thanks!