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

Thread: Html to csv

Hybrid View

  1. #1
    Join Date
    Dec 2011
    Posts
    2

    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 ,
    Jenny

  2. #2
    Join Date
    Oct 2006
    Location
    Sweden
    Posts
    3,632

    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
    http://www.codeguru.com/forum/announ...nouncementid=6
    and http://www.codeguru.com/forum/showthread.php?t=366302 before posting

    Refresh your memory on formatting tags here
    http://www.codeguru.com/forum/misc.php?do=bbcode

    Get your free MS compiler here
    http://www.microsoft.com/visualstudio/eng/downloads

  3. #3
    Join Date
    Dec 2011
    Posts
    2

    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
    Location
    Netherlands
    Posts
    2,012

    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
  •  


Azure Activities Information Page

Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center