0
我想解析一个HTML页面使用HTMLAgilityPack并希望选择下一个表格元素后,我目前选择。选择一个后选择表
我正在使用此选项之前选择表格。
foreach (HtmlNode table in doc.DocumentNode.SelectNodes("//table[@class='KnownClass']"))
例如HTML
<table class="KnownClass"> … </table>
<!-- other html that does not contain tables here -->
<table> … </table> <!-- want to select this table -->
是否有一个简单的方法来做到这一点?