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!
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
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:
HTML Agility Pack massages an HTML document into looking like an XmlDocument. Read the documentation on XmlDocument for these methods.
The documentation is now available here https://html-agility-pack.net/documentation
HtmlAgilityPack looks like its not really maintained any more, the codeplex site is dated with no activity, I would recommend for all new projects go for AngleSharp, its maintained with a roadmap + there is a .NET core version as well
来源:https://stackoverflow.com/questions/32110833/htmlagilitypack-documentation


