I’ve written a VB.Net page to browse my site. It stores the HttpWebResponse in a string. How can I validate the markup validity of the page in .Net? – something similar to W3’s validate by direct input option. I’m looking for something that can identify the DOCTYPE, validate it yes or no, and return a list of failures I can display.
Share
Here’s some information on how to that: Validate XHTML in C# (you should be to translate this into VB.NET if needed).
There’s also a validator module available for download. The only drawback is that the string has to be saved into a physical html file.