Given the XML structure:
<
employees
>
<
employee
>
<
firstname
>John</
firstname
>
<
lastname
>Doe</
lastname
>
</
employee
>
<
employee
>
<
firstname
>James</
firstname
>
<
lastname
>Buck</
lastname
>
</
employee
>
<
employees
>
I sometimes need to loop (iterate) through the file and gather the first/last names
Here is a piece of code that will do that