Here you can find the source of addAllNodes(Element parent, List
public static void addAllNodes(Element parent, List<Node> childNodes)
//package com.java2s; //License from project: Open Source License import java.util.List; import org.jsoup.nodes.Element; import org.jsoup.nodes.Node; public class Main { public static void addAllNodes(Element parent, List<Node> childNodes) { for (Node child : childNodes) { parent.appendChild(child);/*from w w w .j av a 2 s . c om*/ } } }