Java HTML Parse Jsoup parseInfoBody(Element element)

Here you can find the source of parseInfoBody(Element element)

Description

parse Info Body

License

Apache License

Declaration

public static synchronized void parseInfoBody(Element element) 

Method Source Code

//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());
    }
}

Related

  1. parse(String html)
  2. parse(URL url, int timeout)
  3. parseByteData(ByteBuffer byteData, String charsetName, String baseUri, Parser parser)
  4. parseEmail(String content)
  5. parseFile(String filePath)
  6. parseInfoHeader(Element element)
  7. parsePropertyTable(Element table)
  8. parseTable2ArrayList(Document doc, String selectorRow, String selectorCol)
  9. parseTemplate1_1(Element element)