---
title: "Html Agility Pack"
url: "https://osherove.com/blog/2006/12/11/html-agility-pack.md"
canonical: "https://osherove.com/blog/2006/12/11/html-agility-pack.html"
published: "2006-12-11T14:23:17"
updated: "2006-12-11T14:23:17"
tags: [".NET", ".Net 2.0", "ASP.NET"]
author: "Roy Osherove"
description: "Now, this is cool if you do a lot of html parsing! You can tell I was drawn to it by the word \"Agile\" hidden in there. I guess \"Agile\" is the new black. It goes with everything. HtmlAgilityPack is an open source project…"
usage: "Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page)."
license: "https://creativecommons.org/licenses/by/4.0/"
---

# Html Agility Pack

By Roy Osherove December 11, 2006 In [.NET](https://osherove.com/blog/category/net), [.Net 2.0](https://osherove.com/blog/category/net-2-0), [ASP.NET](https://osherove.com/blog/category/asp-net)

**Historical article** · Originally published December 11, 2006; technical details may be outdated.

Now,[this is cool](http://blogs.msdn.com/joshch/archive/2006/12/10/better-html-parsing-and-validation-with-htmlagilitypack.aspx) if you do a lot of html parsing! You can tell I was drawn to it by the word "Agile" hidden in there. I guess "Agile" is the new black. It goes with everything.

> [HtmlAgilityPack](http://www.codeplex.com/htmlagilitypack) is an open source project on CodePlex.  It provides standard DOM APIs and XPath navigation -- _even when the HTML is not well-formed!_

The post is more specifically talking about use cases for this when doing custom validation and extraction of text while doing Web Testing with Team System, but I can see this used in many other places.

## More in .NET

[All posts in .NET](https://osherove.com/blog/category/net)

- Dec 14, 2006

    ### [Catch me talking Agile at the Israeli .NET Architects user group](https://osherove.com/blog/2006/12/14/catch-me-talking-agile-at-the-israeli-net-architects-user-gr.html)

- Dec 14, 2006

    ### [Vote for the top talks to see at the upcoming MS Israeli Conference](https://osherove.com/blog/2006/12/14/vote-for-the-top-talks-to-see-at-the-upcoming-ms-israeli-con.html)

- Dec 9, 2006

    ### [Unit Testing your ASP.NET Validators - Validation Everywhere](https://osherove.com/blog/2006/12/9/unit-testing-your-aspnet-validators-validation-everywhere.html)

- Nov 30, 2006

    ### [New research shows SQL Server 2005 more secure than Oracle](https://osherove.com/blog/2006/11/30/new-research-shows-sql-server-2005-more-secure-than-oracle.html)


---

## About the author

**Roy Osherove**: Senior Solutions Architect at AWS working on AI for production and AI-driven development; author of The Art of Unit Testing and Elastic Leadership, with about 20 years of consulting and training on unit testing, TDD, team leadership and continuous delivery.

### Sites

- [RobotPaper](https://robotpaper.ai/): This blog: AI patterns and anti-patterns, AI and coding agents, and engineering leadership.
- [osherove.com](https://osherove.com): Roy's personal site. Author of The Art of Unit Testing and Elastic Leadership; consulting and training on unit testing, TDD, team leadership and continuous delivery, plus about 20 years of blog posts.
- [The Art of Unit Testing](https://www.artofunittesting.com): The Art of Unit Testing, 3rd Edition (Manning): readable, maintainable, trustworthy unit tests, plus TDD workshops in C#, JavaScript, Java and Kotlin.
- [5whys.com](https://www.5whys.com): Roy's writing on software team leadership: self-organizing teams, surviving chaos, learning mode and the Elastic Leadership model.
- [Pipeline Driven](https://pipelinedriven.org): Continuous delivery and DevOps practices: build patterns, pipeline-friendly testing, DevOps metrics and enterprise DevOps.
- [Elastic Leadership](https://www.elasticleadership.com): Elastic Leadership, Roy's framework for software team leaders (survival, learning and self-organizing modes).

### Social

- X: https://x.com/royosherove
- LinkedIn: https://www.linkedin.com/in/osherove/

### Contact

- Contact form: https://forms.gle/jQSx5KoXvrVA1JCK7

### License

Licensed under CC BY 4.0 — reuse, quote and adapt with attribution (Roy Osherove, link to the original page). License: https://creativecommons.org/licenses/by/4.0/
