HTML to XML

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pietje de kort

    #1

    HTML to XML

    Hello everybody,

    Html-tidy is the current key for converting HTML into XML,
    but I don't know if I am allowed to ship this with a commercial
    product (propably not!). So I'm looking for a replacement.

    After reading some time on the web I found that the mshtml classes
    might be exactly what I'm looking for. The HTMLDocument class for instance
    contains references to all frames and forms, so I expect it uses some
    sort of XSLT internally.

    What I would like to do with mshtml is to convert any HTML document into
    XHTML, and parse this XHTML into an System.Xml.XmlD ocument. This XmlDocument
    I can use for further parsing.

    Does anybody know how this can be done using mshtml, msxml, or any other
    method using CLR classes? Of course I know that HTML is per definition not
    valid XML, that's why the step to XHTML needs to be undertaken first.

    Any help would be greatly appreciated,

    best regards, Wouter van Vugt
  • Stefano \WildHeart\ Lanzavecchia

    #2
    Re: HTML to XML

    > Does anybody know how this can be done using mshtml, msxml, or any other[color=blue]
    > method using CLR classes? Of course I know that HTML is per definition not
    > valid XML, that's why the step to XHTML needs to be undertaken first.[/color]





    Comment

    Working...