从以下HTMLNode获取href属性值的正确XPath语法是什么:
<a target="_blank" class="monkeys" href="http://someurl.com" id="123">
<span class="title">Monkeys are flying all over!</span>
</a>
//a@href
你在寻找什么?
使用HTMLAgilityPack,您使用的方法是:
HTMLAgilityPack.HTMLNode.GetAttributeValue("href", "")