0

Possible Duplicate:
Looking for C# HTML parser

I did some Google search and got a few hits but I wonder whether there is any particular existing code library that stands out from the crowd. Thanks a lot.

Community
  • 1
  • 1
cs0815
  • 15,296
  • 39
  • 125
  • 269

1 Answers1

6

A tool commonly recommended for this is the Html Agility Pack. It will take HTML and massage it into well-formed XHTML and then a traversable DOM, so is very useful for the code you find in the wild.

There are some examples and the API documentation here:

http://html-agility-pack.net/api

Some useful links:

wp78de
  • 17,272
  • 6
  • 36
  • 68
raklos
  • 27,188
  • 58
  • 181
  • 291