我尝试了一切对我有意义(和没有意义)的东西。我有以下 html 代码,我尝试在 Objective-C 中使用 XPath 进行解析:
<tr style="background-color: #eaeaea">
<td class="content">
<a href="index.php?cmd=search&id=foo">bar</a>
</td>
</tr>
我得到了"bar"
via //tr/td[@class='content']/a/text()
。
但我不知道如何获得index.php?cmd=search&id=foo
.
这真的让我绝望:-(
非常感谢你的帮助!