I am trying to use jsoup libraries to parse a html file and get all the data relating to table class="scl_list" as below, which is only a small part of the html page.
<table class="scl_list">
<tr>
<th align="center">Id:</th>
<th align="center">Name:</th>
<th align="center">Serial:</th>
<th align="center">Status:</th>
<th align="center">Ladestrom:</th>
<th align="center">Zähleradresse:</th>
<th align="center">Zählerstand:</th>
</tr>
<tr>
<th align="center">7</th>
<th align="center">7</th>
<th align="center">c3001c0020333347156a66</th>
<th align="center">Idle</th>
<th align="center">16.0</th>
<th align="center">40100021</th>
<th align="center">12464.25</th>
</tr>
<tr>
<th align="center">21</th>
<th align="center">21</th>
<th align="center">c3002a003c343551086869</th>
<th align="center">Idle</th>
<th align="center">16.0</th>
<th align="center">540100371</th>
<th align="center">1219.73</th>
</tr>
</table>
For every <tr> , I then need to get every <th> and save the data in a table or vector. Unfortunately I can't find many examples using jsoup which does something similar.
So far I have this, where html_string is my html page, but I'm not sure how to progress. Any help is much appreciated :
Document doc = Jsoup.parse(html_string);
Elements els = doc.getElementsContainingText("table class=\"scl_list\"");