Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

import org.w3c.dom.*;

import java.util.*;

public class Main {
    /**
     * Append the nodes from the supplied list to the supplied node.
     * @param node Node to be appended to.
     * @param nodes List of nodes to append.
     * @return the Node with the appended list.
     */
    public static Node appendList(Node node, List<Node> nodes) {
        //int nodeCount = nodes.size();
        for (Object node1 : nodes) {
            node.appendChild((Node) node1);
        }
        return node;
    }
}