GavinP1983
Programmer
Hi
I've a list of names and associated details, for example:
<name>Gav</name>
<home>UK</home>
<age>16</age>
<name>Brian</name>
<home>UK</home>
<age>22</age>
<name>Sarah</name>
<home>USA</home>
<age>55</age>
I'm new to this so please bear with me. Using a for-each loop, I can iterate through the list and print it out by <home> (for example, Gavin and Brian would come before Sarah) but I'd like to create a table and list Brian and Gavin in it by their country. Sarah would be in a separate table with anyone else from the USA.
Could anyone give me an idea of how to do this?
I've a list of names and associated details, for example:
<name>Gav</name>
<home>UK</home>
<age>16</age>
<name>Brian</name>
<home>UK</home>
<age>22</age>
<name>Sarah</name>
<home>USA</home>
<age>55</age>
I'm new to this so please bear with me. Using a for-each loop, I can iterate through the list and print it out by <home> (for example, Gavin and Brian would come before Sarah) but I'd like to create a table and list Brian and Gavin in it by their country. Sarah would be in a separate table with anyone else from the USA.
Could anyone give me an idea of how to do this?