import com.jaunt.*; import com.jaunt.component.*; import java.util.List; public class Example10{ public static void main(String[] args){ try{ UserAgent userAgent = new UserAgent(); userAgent.visit("http://jaunt-api.com/examples/food.htm"); Element body = userAgent.doc.findFirst("
"); //find body element Element element = body.getElement(2); //retrieve 3rd child element within the body. System.out.println("result1: " + element); //print the element String text = body.getElement(3).getElement(0).getChildText(); //get text of 1st child of 4th child of body. System.out.println("result2: " + text); //print the text element = body.findFirst("