# XML Node Iterator, multiple attributes for given node

**URL:** https://www.finalbuilder.com/forums/t/xml-node-iterator-multiple-attributes-for-given-node/1607
**Category:** Discussion
**Created:** [September 22, 2010, 11:31am UTC](https://www.finalbuilder.com/forums/t/xml-node-iterator-multiple-attributes-for-given-node/1607 "2010-09-22T11:31:27Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![cliverichardson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@cliverichardson](https://www.finalbuilder.com/forums/u/cliverichardson)
#### Post date: [September 22, 2010, 11:31am UTC](https://www.finalbuilder.com/forums/t/xml-node-iterator-multiple-attributes-for-given-node/1607/1 "2010-09-22T11:31:27Z")

</div>

I've got an xml structure to iterate through.&nbsp; For a given node (XPath), there are multiple Attributes that I want to read in.&nbsp; The XML Node Iterator itself has the ability to assign the value of one Attribute to a variable.&nbsp;&nbsp; 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.&nbsp; I could do min/max operations by using a variable in the iteration loop... IF minval \> attribute\_value THEN minval = attribute\_value.&nbsp;&nbsp; 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

---

<div class="post-metadata">

### Author: ![stephen.ryan](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/s/f14d63/32.png) [@stephen.ryan](https://www.finalbuilder.com/forums/u/stephen.ryan)
#### Post date: [September 23, 2010, 1:13am UTC](https://www.finalbuilder.com/forums/t/xml-node-iterator-multiple-attributes-for-given-node/1607/2 "2010-09-23T01:13:31Z")

</div>

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](https://www.finalbuilder.com/forums/uploads/default/original/2X/1/1bd7d00fb265a7503750cabd5da2727bd85393cf.zip) (5.778 KB)

---

<div class="post-metadata">

### Author: ![cliverichardson](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/82dd89/32.png) [@cliverichardson](https://www.finalbuilder.com/forums/u/cliverichardson)
#### Post date: [September 24, 2010, 7:28am UTC](https://www.finalbuilder.com/forums/t/xml-node-iterator-multiple-attributes-for-given-node/1607/3 "2010-09-24T07:28:38Z")

</div>

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
