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

Future of Html Agility Pack?

Topics: Developer Forum
Sep 3, 2011 at 1:28 PM

Hi all,


Some time ago I read a log post from which I think was the creator of HAP, stating that he would no longer dedicate time to the library, and things thatwere left to be done, etc. I seem not to be able to find the post now.

At the same time, I now see thruogh Twitter that there's some kind of maintenance , and lots of people seem to be using it. As I am starting some new projects I'd like to know what's the situation looking forward? Is there any plan on improving it by implementing new features, bug fixes, tuning performance, etc?

The library works great but we all know this is a fast moving world, so I wonder if it will be able to coup with the changes nad keep improving or not.


Thanks a lot.


P.S: Of course, this is not to discredit the author and people who have been involved in this great software, because it is and I love it, just my concerns for the future.

Sep 4, 2011 at 12:59 AM

I have posted in here in the past on some ideas/plans for 2.0. I still hope to bring HAP forward to it but over the last year or so I've been from one tight deadline to the next. 

I do have a rather large list of items I want to target for the 2.0 series. Unfortunately many some of the big things are rather large undertakings, like fixing stackoverflow on large html docs. Any changes that deal with the parsing engine directly need to be done with great care and attention. The parser is extremely efficient for performance and thus rather complex.

Here are some high level items/ideas.

  • TONS of unit tests
  • Change default parsing options to coform with HTML5 and modern expectations. HAP was built with HTML 3 in mind.
  • Overhaul the XPATH support for attribute selection and more xpath function support.
  • Add quicker to access useful functions
  • Make the parsing options more discoverable and centralized. Basically create a new configuration class that can be passed in, instead of different properties on the document that are only used during parsing. Also like the elements configuration collection
  • Overhaul HtmlWeb: better credential and proxy support, easier to understand encoding options. 
  • Possibly integrate Fizzler or a system like it
  • Build many examples

The big thing 2.0 will have many, many breaking changes. The API currently reflects conventions of .NET 1.0 and System.Xml. I really would like to change it to more reflect LINQ to XML.

Sep 5, 2011 at 5:47 PM

Thanks for answering darthobiwan,

Hope I could help, and that's why I can't ask for anything but be very grateful for being provided with this. I truly love the library but I know it's not a trivial thing, and many other similar projects have been discontinued or are in a similar situation in which it's difficult for them to keep going forward.


Good news about the 2.0 release though, whenever it comes, specially the part of conforming it with HTML5 and the new things on the web.


Thank you for all the hard work. Cheers!