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