I am trying to use HtmlAgilityPack to parse HTML, but am having problems.
Sample HTML Doc:
3条回答 广开言路 (楼主) 2020-12-06 23:27 You should use: selectNode.SelectNodes("option"); instead of: selectNode.SelectNodes("//option"); or you are starting your XPath expression from the root of the HTML document. 0 讨论(0) 查看其它3个回答 发布评论: 提交评论 加载中... 验证码 看不清? 提交回复 热议问题
You should use:
selectNode.SelectNodes("option");
instead of:
selectNode.SelectNodes("//option");
or you are starting your XPath expression from the root of the HTML document.