Looping through XML object nodes

Get help using Construct 2

Post » Thu Feb 20, 2014 5:44 am

I'm trying to loop through an XML object's nodes to do stuff for each node, but I'm not sure how to reference the current node, read its label, and read its data. Any help would be appreciated. I don't see anything in the expressions or actions.
B
11
S
2
G
3
Posts: 283
Reputation: 1,968

Post » Thu Feb 20, 2014 6:30 am

Decided to read C2 docs and learn some XPath :)

According to C2 docs: In a loop in C2 XPath relative paths are relative to the current loop node.
And according to XPath docs: XML.StringValue("name()") will return node names
B
11
S
2
G
3
Posts: 283
Reputation: 1,968


Return to How do I....?

Who is online

Users browsing this forum: beohs, brunopalermo and 12 guests