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
  • 16,751
  • 45
  • 136
  • 299

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
  • 18,207
  • 7
  • 43
  • 71
raklos
  • 28,027
  • 60
  • 183
  • 301