This project has moved and is read-only. For the latest updates, please go here.

HAP 1.4.6

Rating:        Based on 83 ratings
Reviewed:  50 reviews
Downloads: 359537
Change Set: 98677
Released: Jul 10, 2012
Updated: Aug 14, 2012 by DarthObiwan
Dev status: Stable Help Icon

Recommended Download

Application Release Binaries
application, 1048K, uploaded Aug 14, 2012 - 312833 downloads

Other Available Downloads

Documentation Documentation
documentation, 855K, uploaded Jul 11, 2012 - 46704 downloads

Release Notes

1.4.6 Release

The only difference between 1.4.5 is a fix for the .NET 2.0 dll in 1.4.5

Below are the notes for 1.4.5

This codeplex release is provided as a courtesy, the preferred method of referencing HAP is through nuget

This release includes versions of Html Agility Pack for .NET 2.0 - 4.5, Silverlight 4-5, Windows Phone 7-7.1 and Windows 8 Metro.

Windows 8 Metro support

The Windows 8 Metro version is a mostly untested port. There is a known bug with Windows 8 Metro HttpClient and basic authentication. This client is used within the HtmlWeb class. Also XPATH is not supported and may never be supported, only LINQ expressions can be used.


This update fixes a few bugs introduced in the nuget versions since 1.4.0.
  • PreHandleDocumentHandler now fires before the Document is loaded in HtmlWeb
  • Invalid parsing of td tags is fixed
  • Minor speed up of node name retrieval, most notable in LINQ queries
  • Deprecation of DescendantNodes and DescendantNodesAndSelf. These methods will have their implementations changed in the future which will break existing code. It is recommended to use Descendants and DescendantsAndSelf instead

Source code structure changes

More files have been split into partial classes or refactored to facilitate porting HAP to new .NET target profiles. Since it now not possible to build all versions of HAP in one version of visual studio there are multiple solution files. All solution files have been moved to the Solutions directory to keep items tidy. Test projects (current and upcoming) have been moved to the Tests folder. While all sample projects have been moved to the Samples folder.

Getting the Source Code

Due to Codeplex now supporting tagging source control versions to releases the source zip file is not included here. Please follow the tagged change set number link above to a page where you can download the source code for this release

Reviews for this release

Has made my life so much easier since I discovered HtmlAgilityPack. Use it every day, excellent release.
by eqexplorer on Oct 6, 2016 at 8:21 PM
Took me 5min to get used to it, works nice !
by jovicam on Sep 10, 2016 at 9:25 PM
Working great for me and my scraping needs...thanks so much for the great work!!!
by Karfus on Aug 28, 2016 at 5:21 PM
Does not validate a simple html string, I opened a issue, let's see if they will work it around, then I change my rating! Tks
by cassiodeveloper on Sep 22, 2015 at 7:29 PM
Great package of functions. Works lovely for my purposes. I used to get information from HTML and exported to a DataTable
by mbv401920150 on Sep 9, 2015 at 3:04 AM
This project is very well done. The HTML parsing I am doing would have been such a pain that I probably would have given up without it.
by Rhyous on Feb 7, 2015 at 6:18 AM
Great stuff
by joppo on Feb 5, 2015 at 11:46 AM
yes. it is .
by wen9999qiu9999 on Nov 17, 2014 at 12:12 PM
5/5 this is very good release , love it , it saves lot of my time Thanks Guys
by ashwini47 on Oct 30, 2014 at 6:07 PM
this was awesome
by szetos06 on Oct 22, 2014 at 8:48 PM
absolut usefull tool
by Holger1973 on Sep 27, 2014 at 9:28 PM
Only saw that there was documentation now that I add the rating. Well.. Working nicely so far, plus looks to be famous at stackoverflow, so once I started googling, the use became easy. Also, so far it is working great.
by andipandi on Aug 10, 2014 at 2:49 PM
Thanks very much
by abin2323 on Aug 1, 2014 at 10:26 AM
Works great. Sadly this project is not updating anymore. Really hope I can migrate the app from WP8 to WIN8.
by JimmyRespawn on Aug 1, 2014 at 8:42 AM
Thanks very much
by xiesz on Jun 14, 2014 at 1:43 AM
i liked it
by majid_darab on May 18, 2014 at 9:16 PM
Enough said
by jasoncylam on Mar 21, 2014 at 3:14 AM
Great tool to work with. Replaced all my regex with HAP!
by michalmiddleton on Jan 8, 2014 at 5:01 PM
This is a great tool. I had to dig into a site to get datasheets for at lot of products. The is buried and i had to use F12 in explorer to get the table (for each letter in alphabet) and then saving into text. The link scraping was a breeze with HAP - great job :) thanks for sharing.
by FHundewadt on Nov 3, 2013 at 8:30 AM
Want to try
by huyta on Sep 14, 2013 at 10:57 AM
Absolutely the best for HTML scraping purposes in .NET world. Because this is open-source, it is ridiculous easy to integrate into WP7 applications as well. PCL versions have been made available on NuGet, not by the same author but that is the power of open source ;)
by Deathspike on Jul 16, 2013 at 11:47 AM
So many people recommend HAP, but when I tried it, I was disappointed! No WP8 compatibility (missing XPath), previous version lacks searching the document via XPath.
by netaro on Jul 15, 2013 at 3:51 PM
I use this for my cms template in order to edit my page who has been saved in my bdd. It's perfect for this!
by OlivierAlbertini on Jun 26, 2013 at 8:30 PM
Not working well for us. HtmlAgilityPack is stripping </p> tags, affecting rendering badly. Put a link to the .chm file download on the Documentation tab. The .chm file is broken (Windows 7). I cannot navigate inside the .chm file. Right now, today, I am not liking this product one bit. If there are Fields that change the behavior to stop dropping the </p> tags then I will feel better.
by JosephKahl on May 30, 2013 at 10:45 PM
good Works.
by konukca on May 30, 2013 at 4:10 PM
HtmlAgilityPack very Good
by hoangvansang on May 24, 2013 at 9:08 AM
Not quiet good for Windows 8
by binharseneuit on May 16, 2013 at 10:19 AM
by markstavr on May 3, 2013 at 10:22 AM
Very Good,I've been using HAP with Powershell to script importing blog entries from a WordPress site we maintain. Extremely useful. Please maintain the CodePlex downloads, as I'd rather not have to set up a VS project just to pull NuGet updates
by hp7474 on May 2, 2013 at 9:28 AM
Not rating the product, but wanted to provide some help on opening the help. I am using Windows 7 and the help (.cfm) file listed on the download page (not on the documentation page, on the download page) wouldn't open correctly on my computer. I didn't have the UAC issue describe by others. Instead, I had to add a registry key as instructed by, Example 1.
by jimafisher on Mar 29, 2013 at 11:21 PM
Great Work...Please update it for windows phone 8. We will get an error "System.Xml.Xpath" reference missing while using this in windows phone 8.
by shyamtinwar on Mar 25, 2013 at 10:03 AM
Excellent project. Finally something that allows me to process HTML better way than using regular expressions! Thought I found some bugs related XSLT and XPath.
by Dzonny on Mar 18, 2013 at 7:09 PM
The documentaction file is not working, I am unable to see the content. Please fix.
by cybert2t on Mar 11, 2013 at 1:54 AM
Thanks for the your excellent work done. I used it out of the box in my project ( and was able to release the code in just 4 days. -Ryan
by dszryan on Mar 6, 2013 at 3:42 AM
Please update this for Windows Phone 8
by avneet723 on Feb 26, 2013 at 4:35 AM
good stuff, used it to sanitize html
by o on Jan 29, 2013 at 11:19 PM
This is a superb library -- fast, feature-rich, and well-documented. This is far and away the best HTML parser for .NET I've found, commercial or otherwise. To the guy that gave 1 star for a flaw with a single function: Dude, it's open source. Don't complain -- fix it! To the guy that gave it 3 stars for lack of documentation: Did you not see the .chm? DOW: tyvm + keep up the good work!
by JLB2000 on Jan 26, 2013 at 6:58 AM
Thank you for this excellent library. I was always using the excellent CsQuery (, but I faced a scenario in which HAP helped me but CsQuery didn't.
by ashrafsabrym on Jan 20, 2013 at 7:30 PM
I also want to use it using powershell - loading up the VS IDE is a waste of my time, please maintain download link. Only 1 star because LoadFile() function silently fails!
by zaphodikus01 on Jan 2, 2013 at 3:42 PM
Superb. I use this in many projects and have always had great success with it. Thanks for sharing this great work.
by dwmkerr on Dec 9, 2012 at 5:39 PM
I've been using it for a few hours as a first time user, and haven't encountered any difficulties (other than the error in the original example, which I quickly resolved). My html is parsing nicely, thanks!
by MikePanter on Oct 30, 2012 at 2:38 AM
how can I get a .winmd?
by horzel on Oct 23, 2012 at 5:28 AM
If you're having problems with the help file, make sure UAC isn't getting in your way. On Win7, open the properties of Documentation.chm and click the "Unblock" button.
by dstringvc on Oct 19, 2012 at 9:54 PM
I've been using HAP with Powershell to script importing blog entries from a WordPress site we maintain. Extremely useful. Please maintain the CodePlex downloads, as I'd rather not have to set up a VS project just to pull NuGet updates.
by ErichStehr on Sep 27, 2012 at 8:12 PM
Documentaaaaation?!!?! A stable project as useless as a book in the language of Haddock. The docs wont compile (VS2010 or VS2012), the CHM help file is empty(!), the XML help file has no tree? Just because you have to pay for the OS doesn't let you sit on your high horse and shout "I wrote that!" when you haven't finished! Google != Docs. Also, the sign up and login here is far too tedious.
by dontwannasignup on Sep 27, 2012 at 1:40 PM
Does not work with Windows 8. Useless.
by masonbogert on Sep 13, 2012 at 1:41 AM
Great project, love it.
by tyler6699 on Aug 28, 2012 at 10:08 AM
Very thank you
by dangkhoa on Aug 8, 2012 at 3:16 AM
very very good
by selfteam on Jul 31, 2012 at 3:11 PM
Another bullshit c# project with crap for documentation
by waynejohn on Feb 5, 2015 at 5:28 AM