<grand id="grand">
<parent>
<child age="18" id="#not-grand"/>
<child age="20" id="#grand"/> <!-- This is what I want to locate -->
</parent>
</grand>
Can anybody tell me how to express for locating the second child?
This doesn't work...
"/grand/parent/child[@id=concat('#',/grand/@id)]/@age"
Thank you.
I'm sorry. The expression is OK. I found I got some problems in other area not the expression itself.