HtmlAgilityPack Documentation

﹥>﹥吖頭↗ 提交于 2019-11-28 02:59:40

问题


I am new to C#(started today) and I am trying to understand someone else's code which used the HtmlDocument class in HtmlAgilliyPack to parse HTML documents. I cannot find any documentation of this package. The HtmlAgilityPack's project webpage says that there is no documentation available. If someone could point me to the documentation or explain the following methods(intermediate methods too) then that would be really helpful:

 - HtmlDocument.DocumentNode
 - HtmlDocument.DocumentNode.ssn
 - HtmlDocument.DocumentNode.GetElementbyId
 - HtmlDocument.DocumentNode.GetElementbyId(..).sns
 - HtmlDocument.DocumentNode.ssn(...).Attributes["value"].Value.ed().ns()

Thanks in advance!


回答1:


You can download HtmlAgilityPack Documents CHM file from here.

If chm file contents are not visible then un-check Always ask before opening this file check-box as shown in screen shot

Note: The above dialog appears for unsigned files




回答2:


CHM files can be a hassle. Check out nudoq.com - it combines API documentation with community comments (via Disqus). I've found its interface clean and easy to use.

Screenshot:




回答3:


HTML Agility Pack massages an HTML document into looking like an XmlDocument. Read the documentation on XmlDocument for these methods.




回答4:


The documentation is now available here https://html-agility-pack.net/documentation



来源:https://stackoverflow.com/questions/32110833/htmlagilitypack-documentation

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