hi, im trying to display the attribute name of the parent node once the input matches a town name:

my xml is:

Code:
<phonebook>
  <area code="022">
    <town>mallow</town>
  </area>
  <area code="023">
    <town>bandon</town>
    <town>bray</town>     
  </area>
  <area code="024">
...