PDA

View Full Version : Convert hrml table to csv with xpath?



qlands
24th January 2011, 08:20
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.

Lykurg
24th January 2011, 08:26
You can use xpath in Qt as well: QtXmlPatterns.

qlands
24th January 2011, 09:18
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.