如题,以下是我现在的代码,取不到任何值:
- C# code
NodeList priceNode = parser.Parse(new TagNameFilter("li"));
- C# code
NodeList priceNode = parser.ExtractAllNodesThatMatch(new TagNameFilter("li"));
- C# code
INode[] priceNode = parser.ExtractAllNodesThatAre(typeof(System.Web.UI.HtmlControls.HtmlGenericControl ));
以上两种方式的priceNode.Count的值都是0
应该怎么取得HTML里面所有的li呢?
------解决方案--------------------------------------------------------
INode[] priceNode = parser.ExtractAllNodesThatAre(typeof(System.Web.UI.HtmlControls.HtmlGenericControl ));