私のxmlは次のようになります:
<p>text</p>
<p>text</p>
<table>
<!--some tr and td's-->
</table>
<p><sup>a</sup> text</p>
<p><sup>b</sup> text</p>
<p><sup>c</sup> text</p>
<p></p>
<table>
<!--some tr and td's-->
</table>
<p><sup>a</sup> text</p>
<p><sup>b</sup> text</p>
<p>text</p>
最初のテーブルの次の兄弟と空のpの前の兄弟であるpタグを選択する必要があります。