CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 9 of 9
  1. #1
    Guest

    Looking for a class parsing HTML for tags

    Does anybody know if there exists a class which parses a HTML for tags or/and creates objects of different tags, like text or graphics ?
    I'm looking for a class similar HTML::Parser in PERL5.


  2. #2
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Looking for a class parsing HTML for tags

    Hi,

    you can use the MSHTML control for this task. By hosting the control you have full access to the Document Object Model.

    Martin

    Martin

  3. #3
    Join Date
    May 1999
    Location
    Sydney, Australia
    Posts
    420

    Re: Looking for a class parsing HTML for tags

    And where can I find MSHTML?

    Sally


  4. #4
    Join Date
    May 1999
    Location
    Texas, USA
    Posts
    568

    Re: Looking for a class parsing HTML for tags

    It is a COM interface, if you have Internet Explorer installed, you have it. Check out the class CHtmlView to get an idea.

    Wayne



  5. #5
    Guest

    Re: Looking for a class parsing HTML for tags

    Thanks a lot for your answer. Is it somewhere properly documented ?
    Regards
    Dan



  6. #6
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Looking for a class parsing HTML for tags

    Hi Sally,

    as Wayne wrote, it belongs to the IE. What you see when you start the IE is in fact nothing else than a COM client which hosts mainly two COM objects, the WebBrowser control, responsible for navigation, and the MSHTML control, responsible for parsing and rendering HTML.

    Martin

    Martin

  7. #7
    Join Date
    Apr 1999
    Location
    Germany
    Posts
    418

    Re: Looking for a class parsing HTML for tags

    Hi Dan,

    properly? No. It is documented, but it's awful. You can find it on the MSDN CD. In the index look for Platform SDK -> Internet/Intranet/Extranet Services -> Internet Explorer -> Internet Tools & Technologies, chapters "Reusing the Webbrowser and MSHTML" and "Programming the Document Object Model in C/C++".

    HTH


    Martin

  8. #8
    Join Date
    May 1999
    Location
    Switzerland
    Posts
    58

    Re: Looking for a class parsing HTML for tags

    Hi,
    I finally found an example explaining mostly I wanted to know. It's in the VC++ Help under the name "walkall.cpp". It uses the MSHTML stuff you mentioned.
    Thanks a lot

    Dan


    Dan
    --------------------------------------
    It's always nice to see, whether the hints work. I appreciate feedback

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured