471,330 Members | 1,472 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

HtmlDocument like class for HtmlReader/

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,
Jul 30 '08 #1
2 3876
On Jul 30, 11:04*am, CSharper <cshar...@gmx.comwrote:
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.
Jul 30 '08 #2
On Jul 30, 7:04*pm, CSharper <cshar...@gmx.comwrote:
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.
Jul 30 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by James Marshall | last post: by
1 post views Thread by kavitha | last post: by
8 posts views Thread by pierre | last post: by
reply views Thread by Filippo Bettinaglio | last post: by
9 posts views Thread by Le Minh | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.