I would like to count the number of text elements using XML.NodeCount but nothing I try is working. The action slightly below it saying Set LastParam3 to "I got here" never fires.
EDIT: I changed the loop to start at 0 and changed loopindex to loopindex + 1 and that at least fires "I got here".
See highlighted action:
<img src="https://dl.dropbox.com/u/7439411/errorImages/errXML123.jpg" border="0" />
Example Data:
<?xml version="1.0" encoding="UTF-8"?>
<root>
<TalkToImoen>
<normal>
<blocks>
<element>
<portrait>Imoen</portrait>
<text>
<element>I'm so glad to be out of that place..</element>
</text>
</element>
</blocks>
</normal>
</TalkToImoen>
<TalkToMinsc>
<normal>
<blocks>
<element>
<portrait>Minsc</portrait>
<text>
<element>I'm Minsc.</element>
<element>I love my hamster, Boo!</element>
<element>I</element>
<element>can</element>
<element>talk</element>
<element>for</element>
<element>days! :D</element>
</text>
</element>
</blocks>
</normal>
</TalkToMinsc>
</root>
What I've tried:
- Wrapping the expression with int( )
- Adding 0 to the end of the expression
- Ensuring ".../element[1]" instead of beginning with element 0 in XPath strings