Sign in to follow this  
Followers 0
ledigeine

Using array variable to pull xml data

2 posts in this topic

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.

Share this post


Link to post
Share on other sites



Nevermind, i just went another route with this... sure its not as cool but it kinda works. :P

Share this post


Link to post
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
Sign in to follow this  
Followers 0