C# DNX parsing HTML

回眸只為那壹抹淺笑 提交于 2019-12-11 20:19:12

问题


I am trying to parse HTML on DNX (.NET Execution Environment), but I can't find way to do it. As I know DNX was made primary for cross platform web development, therefore there should be something?


回答1:


You can try to use HtmlAgilityPack for .NET Core. It's port HtmlAgilityPack library to .net core, which used to parsing html on full .Net Framework.




回答2:


I have finally manage to find a way to parse HTML documents. I have used System.Xml.Linq.XDocument class.

It is fully supported on DNX, here is doucmentation.



来源:https://stackoverflow.com/questions/34093825/c-sharp-dnx-parsing-html

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!