I am a newbie in Jsoup and could not find a solution while searching for a long time.
I have a table, in which the tr has a classname with whitespace at the end.
<table class="table_one">
<tr class="no_background ">
<td>
<b> Text comes here</b>
</td>
<td> and here... </td>
</tr></table>
Now, I want to access the text. When I say
Select("table[class=tag_std] tr[class=bgnd_1 ]")
it returns empty list. How do I get the value as
"Text comes here and here...".
Thanks.
I think you need to put your tag inside a tag instead of .
And I think you need this, according to your exact situation. Here is a simple example for you to test.
Output:
..