Hey Guys I am just starting on Jsoup and have a small problem with a table. I am trying to parse car details from this website http://mywheels.ie/car-history-check/free-car-check-results/?VRN=00c31865 but don't really know how to do it. Could somebody tell me how to address the table and copy at least one element from it ? thanks in advance
Elements table = doc.select("table");
Elements row = doc.select("table[width=\"100%\"] [cellspacing=\"0px\"] [cellpadding=\"0px\"]");
Iterator<Element> iterator = row.listIterator();
while(iterator.hasNext())
{
Element element = iterator.next();
String id = element.attr("id");
String classes = element.attr("class");
String value = element.text();
System.out.println("Id : " + id + ", classes : " + classes+ ", value : " + value);
}