i have a simple xml file as follows:
<parent>
<children>
<child name="tom"/>
<child name="dick"/>
<child name="harry"/>
</children>
</parent>
now, i can access the child whose name is tom by the following path:
//parent/children/child/[starts-with(@name, 'tom')]
but how do i display the value of "tom"? when i echo the following:
//parent/children/child/@name
nothing gets displayed, although the "for-each" look works fine (the correct number of children are looped through).
please help!! any ideas?