HTMLdocument and Webclient/Webbrowser
-
Hi all, i have a URL and i want to get the html from that location. then i want to be able to get the BODY part and look for something there.. if posible (using some parsers) i want to get the links there and other stuff too. but how do i connect from HTMLdocument and downloading the url? Thanks alot, Ran.Z. R.Z
-
Hi all, i have a URL and i want to get the html from that location. then i want to be able to get the BODY part and look for something there.. if posible (using some parsers) i want to get the links there and other stuff too. but how do i connect from HTMLdocument and downloading the url? Thanks alot, Ran.Z. R.Z
The only parser that I've come across built into the framework is the
System.Windows.Forms.WebBrowser
control where you can navigate to a page and then use theWebBrowser.Document
property to retrieve the HTMLDocument. If this is OTT then the only other solution would be to write a simple parser, maybe use some Regular Expressions but at least the WebBrowser will take into consideration some badly formatted HTML. If only everyone wrote in XHTML then we could use the XmlDocument class... :sigh: Ed -
Hi all, i have a URL and i want to get the html from that location. then i want to be able to get the BODY part and look for something there.. if posible (using some parsers) i want to get the links there and other stuff too. but how do i connect from HTMLdocument and downloading the url? Thanks alot, Ran.Z. R.Z
-
-
thanks alot. haven't tried it yet but it may do the job. also the message posted before that. thank you both :-D Ran.Z. R.Z
Also see this[^] article which is a framework for retrieving information from the web, which seems like what you appear to be doing. (Its MFC analog can be found here[^] and several applications of this class can be found here[^].) /ravi My new year's resolution: 2048 x 1536 Home | Music | Articles | Freeware | Trips ravib(at)ravib(dot)com