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

Thread: Html to csv

  1. #1
    Join Date
    Dec 2011

    Html to csv

    Hi everyone ,

    I need a solution to read an HTML file which has many tables .
    Iterate through all the tables and convert them to CSV format .
    Is it possible to read/parse html files using MSXML 6.0 ?
    Is there any class that can perform such a task for native c++?

    Thanks ,

  2. #2
    Join Date
    Oct 2006

    Re: Html to csv

    You might find a class that does what you need if this is a very common problem. If not you have to write your own code and msxml is probably as useful as any other xml parser.
    Debugging is twice as hard as writing the code in the first place.
    Therefore, if you write the code as cleverly as possible, you are, by
    definition, not smart enough to debug it.
    - Brian W. Kernighan

    To enhance your chance's of getting an answer be sure to read
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here

    Get your free MS compiler here

  3. #3
    Join Date
    Dec 2011

    Re: Html to csv

    Thanks ,

    When I tried to load the html document with msxml it failed .
    But when I try to load a regular xml schema is succeeds.
    Does someone have a code which loads html to msxml class?

  4. #4
    Join Date
    Jul 2005

    Re: Html to csv

    Not all HTML formats are valid XML. Have a look here: http://stackoverflow.com/questions/4...-c-html-parser
    Cheers, D Drmmr

    Please put [code][/code] tags around your code to preserve indentation and make it more readable.

    As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky

Tags for this Thread

Posting Permissions

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

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.