Results 1 to 3 of 3

Thread: Convert hrml table to csv with xpath?

  1. #1
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Question Convert hrml table to csv with xpath?

    Hi,

    I have a html document with many tables. Each table has the same structure (colums headers). I would like to export each table to a single csv file. I saw some ruby examples in the Internet that uses xpath.

    Any idea how to do this with Qt?

    Thanks,
    Carlos.

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    4,380
    Thanks
    19
    Thanked 1,005 Times in 913 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows Symbian S60
    Wiki edits
    5

    Default Re: Convert hrml table to csv with xpath?

    You can use xpath in Qt as well: QtXmlPatterns.

  3. #3
    Join Date
    Mar 2010
    Location
    Heredia, Costa Rica
    Posts
    257
    Thanks
    24
    Thanked 17 Times in 14 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Convert hrml table to csv with xpath?

    Cool.

    Any idea how to do it? I know how to write the CSV but no idea how to read the tables/columns/data from the html.

    Thanks in advance,
    Carlos.

Similar Threads

  1. Xpath & QT
    By pl01 in forum Qt Programming
    Replies: 0
    Last Post: 15th November 2010, 12:48
  2. Generating XPath query
    By Superstrength in forum Qt Programming
    Replies: 0
    Last Post: 4th November 2009, 18:48
  3. bug XPath in XSLT?
    By ixSci in forum Qt Programming
    Replies: 1
    Last Post: 4th August 2009, 08:24
  4. XPath
    By steg90 in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2007, 21:55
  5. Replies: 9
    Last Post: 21st June 2007, 10:27

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.