I have the following problem. Parsing an html table, using JSoup, splits the table into rows, and then each row into columns. After that, you clear the tags and simply enter the text in the ArrayList
. Then with the help of the adapter, fill the GridView
in the form of a table.
The problem is that everything works when Api lvl> 19, otherwise I pull out either question marks or empty lines.
Actually the parser code itself:
Document verb = Jsoup.connect("http://passare.ru/ajax_socket.php?func=ru_verb2_forms&text=" + nWord).get(); Element tableVerb = verb.select("table").first(); Elements rowsVerb = tableVerb.select("tr"); for (int i = 0; i < rowsVerb.size(); i++) { Element row = rowsVerb.get(i); Elements cols = row.select("td"); for (Element e: cols){ list.add(e.text().toString()); } } }