Here you can find the source of parseInfoBody(Element element)
public static synchronized void parseInfoBody(Element element)
//package com.java2s; //License from project: Apache License import org.jsoup.nodes.Element; import org.jsoup.select.Elements; public class Main { public static synchronized void parseInfoBody(Element element) { element.getElementById("mf-section-0").remove(); Elements tabs = element.select("h2"); for (int i = 0, total = tabs.size(); i < total; i++) { Element item = tabs.get(i); System.err.println(item.text()); Elements mf_section = element.getElementsByClass("mf-section-" + (i + 1));//from w ww .j a v a 2 s . co m System.err.println(mf_section.text()); } System.err.println(tabs.size()); } }