问题
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