DomDocument

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

    #1

    DomDocument

    I remember in Visual Basic 6, I can retrieve a HTML file to a DOMDocument
    then do a search for a word or a unique string of code contain in the HTML
    then extract the <table> that contains the search string and then parse it

    Can I do that in ASP.net? Code samples? Tutorials?

    There must be because its very often used in Visual Basic 6 (RSS feeds and
    etc). Thanks in advance.


  • Peter Bromberg [C# MVP]

    #2
    Re: DomDocument

    If you want to use COM Interop, you can use the WebBrowser control in almost
    exactly the same way you did with VB 6.0.

    However, you may want to look into 100% managed code alternatives such as
    HTMLAgilitypack :
    http://blogs.msdn.com/smourier/archi...6/04/8265.aspx

    Peter

    "jty202" <jty202@gmail.c om> wrote in message
    news:%23RxkcLA$ EHA.2552@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    >I remember in Visual Basic 6, I can retrieve a HTML file to a DOMDocument
    > then do a search for a word or a unique string of code contain in the HTML
    > then extract the <table> that contains the search string and then parse it
    >
    > Can I do that in ASP.net? Code samples? Tutorials?
    >
    > There must be because its very often used in Visual Basic 6 (RSS feeds and
    > etc). Thanks in advance.
    >
    >[/color]


    Comment

    Working...