Was ist die richtige XPath- Syntax, um den Wert des href- Attributs vom folgenden HTMLNode abzurufen :
<a target="_blank" class="monkeys" href="http://someurl.com" id="123">
<span class="title">Monkeys are flying all over!</span>
</a>
Ist //a@href
was Sie suchen?
Mit HTMLAgilityPack verwenden Sie folgende Methode:
HTMLAgilityPack.HTMLNode.GetAttributeValue("href", "")