如何解析HTML或将HTML转换为XML,以便将信息从网站中提取出来(使用C#) [英] How to parse HTML or convert HTML to XML so I extract the information out of the website (in C#)
本文介绍了如何解析HTML或将HTML转换为XML,以便将信息从网站中提取出来(使用C#)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法解析HTML或将HTML转换为XML,所以我很容易将信息从网站中提取出来?
I
谢谢,
一个href =http://html-agility-pack.net/?z=codeplex =nofollow noreferrer> HTMLAgilityPack 就是你要找的东西。查看本教程使用HTMLAgilityPack解析HTML文档Possible Duplicate:
What is the best way to parse html in C#?
Is there a way to parse HTML or convert HTML to XML so I extract the information out of the website easily?
I'm working with C#.
Thank you,
解决方案
HTMLAgilityPack is what you are looking for. Check out this tutorial Parsing HTML Document with HTMLAgilityPack
这篇关于如何解析HTML或将HTML转换为XML,以便将信息从网站中提取出来(使用C#)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文