HtmlDocument like class for HtmlReader/

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • CSharper

    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,
  • Ignacio Machin ( .NET/ C# MVP )

    #2
    Re: HtmlDocument like class for HtmlReader/

    On Jul 30, 11:04 am, CSharper <cshar...@gmx.c omwrote:
    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.

    Comment

    • Pavel Minaev

      #3
      Re: HtmlDocument like class for HtmlReader/

      On Jul 30, 7:04 pm, CSharper <cshar...@gmx.c omwrote:
      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:



      But pay attention to the license - it is copyleft.

      Comment

      Working...