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!
Html Agility Pack (HAP) is a free and open-source HTML parser written in C# to read/write DOM and supports plain XPATH or XSLT. It is a . NET code library that allows you to parse "out of the web" HTML files.
Right-click the References folder and select Add Reference. You can then select from the list of . NET assemblies, or Browse and find its location.
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
UPDATE:
HtmlAgilityPack
Documentation is available here
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With