【发布时间】:2012-06-30 12:33:39
【问题描述】:
我尝试了所有对我有意义(和没有意义)的方法。我有以下 html 代码,我尝试在 Objective-C 中使用 XPath 进行解析:
<tr style="background-color: #eaeaea">
<td class="content">
<a href="index.php?cmd=search&id=foo">bar</a>
</td>
</tr>
我通过//tr/td[@class='content']/a/text() 得到"bar"。
但我不知道如何获得index.php?cmd=search&id=foo。
这真的让我绝望:-(
非常感谢您的帮助!
【问题讨论】: