HtmlDocument like class for HtmlReader/

  • Thread starter Thread starter CSharper
  • Start date Start date
C

CSharper

Is there a class I can use which loads HtmlDocument and performs
default html validation to see if the document is a valid html
document like XDocument? HtmlDocument seems to me only used to create
HtmlDocument and there are no methods to load the existing HTML
document.
Thanks,
 
Is there a class I can use which loads HtmlDocument and performs
default html validation to see if the document is a valid html
document like XDocument? HtmlDocument seems to me only used to create
HtmlDocument and there are no methods to load the existing HTML
document.
Thanks,

Hi,

not really, you could try to load it in a WebBrowser (not sure if
WebBrowser has an event for errors)
the thing is that HTML is VERY distinct than XML, depending of the
browser it might be valid or not.
 
Is there a class I can use which loads HtmlDocument and performs
default html validation to see if the document is a valid html
document like XDocument? HtmlDocument seems to me only used to create
HtmlDocument and there are no methods to load the existing HTML
document.

Have a look at this:

http://www.codeplex.com/htmlagilitypack

But pay attention to the license - it is copyleft.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top