【发布时间】:2015-07-16 12:38:58
【问题描述】:
是否有任何 HTML 解析器使用 X-Path 来处理 UWP - Windows 10?
在 Windows 10 中探索 HTML 的最简单/最佳方式是什么?
【问题讨论】:
-
@Graffito 不支持 ... SelectNode 方法出错 ... 像 Windows Phone 8.1
-
您是否将 Html 文档声明为“HtmlAgilityPack.HtmlDocument”,而不仅仅是“HtmlDocument”?
-
是的,我试过这段代码
(new HtmlAgilityPack.HtmlDocument()).DocumentNode.SelectNodes但是没有SelectNodes方法 -
Official answer from the author - 你不能使用 XPath;您必须改用 LINQ。
标签: c# windows-10 windows-10-mobile