我正在使用htmlAgilityPack
来从表中检索数据 -
var text = from x in htmlDoc.DocumentNode.Descendants()
where x.Name == "p" && x.Attributes.Contains("class")
where x.Attributes["class"].Value == "cut"
select x.InnerText;
在调试时,我可以访问Results View
显示我需要访问的所有解析数据。但是我无法弄清楚如何return
解析已解析的数据数组。
我怎样才能做到这一点?