If I have
<div>
<a>
<table>
<tr>
<td value="val">
If I want to select the a containing a td
with value="val"
, how can I do that?
I have tested:
//td[@value="val"]
But I obtain the td node, I want to obtain the a
node. How can I achieve that with XPath?