Java HTML Jsoup Element getElementValue(Element wrapperElement, String cssQuery)

Here you can find the source of getElementValue(Element wrapperElement, String cssQuery)

Description

get Element Value

License

Open Source License

Declaration

public static String getElementValue(Element wrapperElement, String cssQuery) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import org.jsoup.nodes.Element;

public class Main {
    public static String getElementValue(Element wrapperElement, String cssQuery) {
        try {/*ww w  .j a va2s  . c  om*/
            Element elm = wrapperElement.select(cssQuery).first();
            return elm.text();
        } catch (Exception e) {
            e.printStackTrace();
            return "";
        }
    }
}

Related

  1. getDouble(Elements line, int idx)
  2. getElementByXPath(String xpath, Document doc)
  3. getElementsByClass(String className, Element boardElement)
  4. getElementsFirstLevel(String html)
  5. getElementTextBySelector(String html, String selector)
  6. getElIndexInSameTags(Element e)
  7. getFirstWithOwnText(final Elements elementList, final String text)
  8. getFormattedText(Element element)
  9. getIndustry(Element element)