Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. HTML parsing...

HTML parsing...

Scheduled Pinned Locked Moved ATL / WTL / STL
htmljsonquestion
2 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nw60312
    wrote on last edited by
    #1

    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

    H 1 Reply Last reply
    0
    • N nw60312

      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

      H Offline
      H Offline
      Heath Stewart
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups