0

如何在 htmlagilitypack 中获取所有具有class = 'round'id = 'footer'的 div?

我以为我可以在下面做,但它不起作用?

Dim s As HtmlNodeCollection = htmlDoc.DocumentNode.SelectNodes("//div[@class ='round' and @id='footer']")
4

1 回答 1

1

XPath 对我来说看起来不错,我会仔细检查 HTML 以确保它包含这样的元素。

于 2012-07-18T17:58:31.757 回答