I have a deeply nested structure (actually parsing xhtml, so many unpleasant ones), for example:
<tr>
<td>
<font id="blah">
stuff
</font>
</td>
</tr>
<tr>
<td>
more stuff
</td>
</tr>
and this is repeated in a long table. I need an xpath expression that selects the second font tag (or rather - text()). I looked at the axis preceding-sibling, but something is not working so well.
something along the lines (and forgive me if it's funny, my xpath is rusty)
//tr[preceding-sibling::tr/td/font]/td/text()
source
share