This is an archived thread from the StopByte developer forum — browse all archived threads. StopByte is now a payments & ecommerce toolkit — check out our free calculators.

Stopbyte

How To Parse HTML Page In C#?

What is the best way to parse HTML page code (String) in C#?

You can use HTMLAgilityPack, you can install it using NuGet.

Refer to this thread, it discusses how you can use HtmlAgilityPack to select HTML nodes, and has some samples in there: