HTML parsing...
-
Hello - I need to do some HTML parsing in a service. Does anyone know if the WebBrowser control is safe for this, i.e. doesn't throw up any dialogs? I interested in the DOM methods for parsing the HTML structure out. Anyone have some alternate suggestions for doing this? Thanks! Nate
-
Hello - I need to do some HTML parsing in a service. Does anyone know if the WebBrowser control is safe for this, i.e. doesn't throw up any dialogs? I interested in the DOM methods for parsing the HTML structure out. Anyone have some alternate suggestions for doing this? Thanks! Nate
Don't use the WebBrowser control. It is an ActiveX control and doesn't like to be windowless. Use the MSHTML control, which the browser actually hosts for its HTML parsing and partial rendering. The WebBrowser control handles other display issues, events, and other services. The MSHTML control is what does the majority of the work and doesn't require a window. It's also lighter and give you access to all the HTML-related things like
IHTMLElement
,IHTMLDocument2
, etc.Reminiscent of my younger years...
10 LOAD "SCISSORS" 20 RUN