What to create XPath(s) that I can can use in a FOR loop to retrieve each of the <app> and <coapp> fname & mname. Want my result to be "1 - Danny L", "2 - Wendy R", "3 - Brenda", "4 - Tim G". I have played with this XPath and just cannot get it right.
<?xml version="1.0"?>
<root>
<data>
<app>
<curr_fname>Danny</curr_fname>
<curr_mname>L</curr_mname>
<prev_fname>Wendy</prev_fname>
<prev_mname>R</prev_mname>
</app>
<coapp>
<curr_fname>Brenda</curr_fname>
</coapp>
<coapp>
<curr_fname>Tim</curr_fname>
<curr_mname>G</curr_mname>
</coapp>
</data>
</root>