I want to get the table node where its decendent node="Nohup Files".
What I have so far is

table/descendant::font[self::text()="Nohup Files"]
table/tr/td/b/font[self::text()="Nohup Files"]

but neither works.

<table>
<tr>
<td><b><font>Nohup Files</font></b></td>
</tr>
</table>

In my fumblings, I was able to piece together this: //font[self::text()="Nohup Files"]/ancestor::table.

I had to select the node I wanted, specified the text to search for and the node to return.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.