XML Node Iterator, multiple attributes for given node

I've got an xml structure to iterate through.  For a given node (XPath), there are multiple Attributes that I want to read in.  The XML Node Iterator itself has the ability to assign the value of one Attribute to a variable.   What's the neatest way to get all the Attribute values read in without creating a Node Iterator action for each of them?

Leading on from the above, I wanto be able to compare all the values for a given attribute to work out things like 'minimum', maximum and so on.  I could do min/max operations by using a variable in the iteration loop... IF minval > attribute_value THEN minval = attribute_value.   I just wondered if FinalBuilder supports Arrays because it would be more effective to read in the attribute values into an arrays and then loop through the arrays to work out aggregate values separately.

Regards,

Clive

Hi Clive

I have attached an example project that demonstrates how to do this.

Please let me know if this solves your problem.

Regards,

Steve

XmlExample.zip (5.778 KB)

Steve,
Thank you for the excellent example/solution!

To do the calculations I want to do, I was wishing for an Array variable type in FinalBuilder. I guess I’m not the first one to say that?! Anyway, I used a script action and passed in the variable list, then used VBScript’s Split function to convert the list to an array. Having done this, I can do all the aggregrate calculations very easily.

Best regards,
Clive