seeSgmlReader 1.1 
http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=B90FDDCE-E60D-43F8-A5C4-C3BD760564BCalso seeClean up your Web pages with HTML TIDY
http://www.w3.org/People/Raggett/tidy/