xml for loop isn't working!

admin

Administrator
Staff member
hello all, trying to loop thru an xml file to create a list of thumbnails...


<%
For i = 0 To (article_count)

Response.Write("<img src=http://www.webdeveloper.com/forum/archive/index.php/" & objXML.documentElement.childNodes.Item(i).childNodes.Item(5).text & "><br>")

Next
%>


currently this is in the body of the page, tried moving up above the html and it didn't help. it seems it just won't rewrite the xml with the variable i. if i replace i with a number it loops fine. here is my error...



Error Type:
Microsoft VBScript runtime (0x800A01A8)
Object required: 'documentElement.childNodes.Item(...)'
/campus/seasons/xml/summer2006/index.asp, line 33


any ideas? thanks!
 
Back
Top