I need to call multiple trees in an xml document. The call for a single tree is simple. I just define tree as an object that points to the document and...
set branch1 = tree.item(0).childNodes
set branch2 = tree.item(1).childNodes
...etc...
I need to have a loop that does something like this.
for x = 0 to something.length
set branch = tree.item(x).childNodes
do something with branch
next
I've tried doing the following:
set branch = eval("tree.item(" & x & "
childNodes"
eval("set branch = tree.item(" & x & "
childNodes"
execute("set branch = tree.item(" & x & "
childNodes"
none of those seemed to work. I don't think this is an xml specific issue. I just need to figure out how to set objects using variables and loops.
set branch1 = tree.item(0).childNodes
set branch2 = tree.item(1).childNodes
...etc...
I need to have a loop that does something like this.
for x = 0 to something.length
set branch = tree.item(x).childNodes
do something with branch
next
I've tried doing the following:
set branch = eval("tree.item(" & x & "
eval("set branch = tree.item(" & x & "
execute("set branch = tree.item(" & x & "
none of those seemed to work. I don't think this is an xml specific issue. I just need to figure out how to set objects using variables and loops.