Here you can find the source of VectoriseFirstChildrenNodes(Node node, Vector elements)
public static void VectoriseFirstChildrenNodes(Node node, Vector elements)
//package com.java2s; // under the terms of "Eclipse Public License v1.0" import java.util.Vector; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { /**// ww w. jav a 2 s . c om * It creates a vector with contents all the first children of a node * (without the node itself) */ public static void VectoriseFirstChildrenNodes(Node node, Vector elements) { NodeList list = node.getChildNodes(); if (list.getLength() > 0) for (int i = 0; i < list.getLength(); i++) elements.add(list.item(i)); } }