I\'ve got the unpleasurable task of working on a Classic ASP site (VBSCRIPT) and need to parse out the following information in a loop.
Switch to using xpath instead and it will be much easier.
Dim nodes
nodes = objXML.selectNodes( "//products" )
Dim images
For each node in nodes
Response.Write( "" )
Response.Write( "- Ref: " + node.selectNodes( "@ref" ).Text + "
" )
images = node.selectNodes( "images/image" )
For each image in images
Response.Write( "- Image: " + image.selectNodes( "@ref" ).Text + "
" )
Next
Response.Write( "
" )
Next
I'm a JScript ASP coder, like you not done VBScript for an age so the above "might" need a bit of polish (I had to strip out all the ";" at the end of the all the lines, such is the habit of adding them) but should point you in the right direction at least.
Hope that helps.