BeautifulSoup similar for C#

beautifulsoup, c#, python

Solution

I have used HTMLAgilityPack in the past with some success but it had some issues with parsing HTML that is badly formed or missing closing tags. However that was about 2 years ago.

I have usually tended toward the SGMLReader which allows you to wrap it with a XML Reader and so you can then easily use XDocument or XmlDocument in C# to read the HTML. The SGMLReader has worked on all malformed HTML that I have thrown at it.

Problem

is there any similar library to `BeautifulSoup` for `C#`? I want to simply parse HTMLs and XMLs, specially HTMLs with errors.

Original source