This is probably a really stupid question and i've probably not thought it through, but that hasn't stopped me in the past!
I'm getting an XML feed from a website using
I've then got to move into two elements before I get to the one I want, I then want to loop through that element and pull certain things out. This I can do, however, sometimes I need to drop into further elements inside this 3rd element and I DON'T want to loop through them, just pull one out.
Like so:
I might not be writing this clearly but I don't know any other way to move into elements without doing
which causes a loop
I'm getting an XML feed from a website using
Code:
Server.CreateObject("MSXML2.ServerXMLHTTP")
I've then got to move into two elements before I get to the one I want, I then want to loop through that element and pull certain things out. This I can do, however, sometimes I need to drop into further elements inside this 3rd element and I DON'T want to loop through them, just pull one out.
Like so:
Code:
<element1>
<element2>
<element3>
...stuff here
<rogueElement>
...just want to drop in here once
</rogueElement>
..loop round element3
</element3>
</element2>
</element1>
I might not be writing this clearly but I don't know any other way to move into elements without doing
Code:
for each x in y