I'm in need of some kind of library, possibly HTMLAgilityPack? that can parse a HTML file and a CSS file. But it's kinda tricky, because a HTML(PHP) file might contain PHP code in it, and also CSS code in it, so there's no way in hell i'm going to even attempt to battle this on my own without the help of some library.
I'm using C#/WinForms with Visual Studio Express 2010. So far the only one I can find is HTML AgilityPack, which has no documentation that I can find, and I'm not sure it does everything I need it to do.
My exact requirement is to find a way to parse an HTML file, loop through every single tag, get its contents, get all the attributes and values etc and do something with each one of them.
Have you seen a library like this around before? Can someone please provide some help/advice on how to go about this? I'm not really looking for perfection, just simplicity and variety.