Java HTML Jsoup Element elementsToList(Elements elements)

Here you can find the source of elementsToList(Elements elements)

Description

elements To List

License

Open Source License

Declaration

public static List<String> elementsToList(Elements elements) 

Method Source Code


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

import org.jsoup.nodes.Element;
import org.jsoup.select.Elements;
import java.util.ArrayList;
import java.util.List;

public class Main {

    public static List<String> elementsToList(Elements elements) {
        List<String> elementsList = new ArrayList<String>();
        for (Element element : elements) {
            elementsList.add(element.toString());
        }/* ww w.  j ava2 s.  co m*/
        return elementsList;
    }
}

Related

  1. convertNodeToText(Element element)
  2. convertTablesToDivs(Element body)
  3. copy(Element e)
  4. countElements(Node parent)
  5. createSafeElement(Element sourceEl)
  6. extractTextWithNewlines(Element elem)
  7. filterElementsByTag(List results, Element element, Set tagSet)
  8. findAElementsWithId(Elements elements, String id)
  9. findAllNodesBefore(Element firstChapter)