如果我有以下类似的html代码:
<div class=unique_id>
<h1 class="parseasinTitle">
<span> Game Title </span>
</h1>
Game Developer
</div>
有没有办法使用xpath仅获取文本中的“游戏开发者”部分? 经过搜索,我尝试了以下内容:
//div[@class='unique_id' and not(self::h1/span)]
但是这仍然给我整个文本“游戏标题 游戏开发者”。