Jump to content

Using array variable to pull xml data


Recommended Posts

Ok the other day this guy showed me how to use a for next loop in a cool way so i wanted to use the same idea for checking these 4 nodes on my xml file.

For $i = 1 to 4
$view = _XMLGetValue("/main/view/item" & $i)
Next

Thats it... my nodes are named "item1" "item2" and so on for 4 items. with the _XMLDOMWrapper is the & $i not going to be possible? I figured it would just slap the number on the end. But it doesnt seem to be working... unless i have this whole section of code wrong. Thats very possible since I just found out a little about for..nexts.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...