Hello All,

First of all, I am beginner so please bear with me. :)

I want to extract data within the table from a html code. Lets consider HTML code to be in a file. I have read the data to a variable. Now using this variable I want to get all the data which is included in table format.

Preferred return type would be 2D Array or an array of vector or delimited string.

I have attached my code.

Your help will be much appreciated. Thanks in advance ;)

Recommended Answers

I suppose the easiest way would be to use boost HTML parser

Jump to Post

All 4 Replies

Thanks for your time & suggestion AD.

I was basically looking at the string functions or some simple way to get it working. Breaking html data into table/ getting data from tables was easy using string.find but arranging the values in right format is the biggest problem :(

I hope, I made my point clear now. AD or anyone else, any other suggestions please?

I supose you should post an example HTML file. If you can already extract all the data from the table then what's the problem? Is the data numeric or strings, or both?

Hi again AD :)

In the code I have used a web URL. Please have a glance.

You can consider any html code which has data in tables. I am not able to sort the data because the method I was using to extract data from tables was not accurate.

I am stuck at this part and do not have a clue what would be the best solution. :S

Using URLDownloadToFile, similarly is there any function which returns values from table using Table id or tag name?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.