I need to call multiple trees in an xml document.
set branch1 = tree.item(0).childNodes
set branch2 = tree.item(1).childNodes
...etc...
This works just fine.
But what I need is 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. Any ideas would be appreciated
set branch1 = tree.item(0).childNodes
set branch2 = tree.item(1).childNodes
...etc...
This works just fine.
But what I need is 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. Any ideas would be appreciated