I’m newbie to Android development and to HTML Parsing. There’s specific construction, e.g.
<div class="submitted"> TEXT 1 <div class="class"> TEXT 2 </div></div>
I only need to extract TEXT 1.
Element a = doc.select(“div[class]”).get(x); where x – integer, doesn’t work as I need.
Moreover, I can’t specify select(“div[class=”submitted”]).
How can I select only from “submitted” class?
You should read the documentation. You can select the class via
div.submitted.