This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I need to parse three or four HTML pages to extract data from them.
An example of the pages is:
In this case what I can be doing is:
Then by reading each line I can check the string for the classes 'value' and 'symbol'.
What I want to know is that whether there is a more efficient way to do this? Tomorrow it may happen that the class names can change. So I don't want my application to be tightly coupled to the HTML page.