diesalher
Joined: 14 Apr 2009 Posts: 28
|
Posted: Tue Jun 30, 2009 8:01 am Post subject: Problem with Titan's xpath |
|
|
if i have this xml
| Code: |
<data>
<a id="a1"></a>
<a id="a2">
<b id="b1"></b>
<b id="b2"></b>
</a>
<a id="a3"></a>
</data>
|
and i want to return the id of the "a" element which has a b child with id = b1
i use..
| Code: |
/data/a[b/@id = 'b1']/@id/text() -->returns ai,a2,a3
/data/a[./b/@id = 'b1']/@id/text() -->returns b1,b2
|
¿am i doing something wrong or it is a bug?[/code] |
|