我想使用 Xpath 从网页中选择一些文本,但该文本位于两个节点之间。
...
<table>
<th>Abbreviation</th>
<tr>
<td>
<span><u>General</u><br/></span>
My Text <!--The text i want to get-->
<br/><u>Def</u>
Some other Text
</td>
</table>
...
请注意,我无法更改页面,因为它是我无法控制的来源。
我已经浏览过 W3C 和维基百科文档,但没有找到任何东西(或理解)。
谢谢您的回答