Java tutorial
//package com.java2s; import org.w3c.dom.*; import java.util.Vector; public class Main { public static Vector getSetColorNodes(Node node) { NodeList nList = node.getChildNodes(); Vector propertySetNodes = new Vector(); for (int i = 0; i < nList.getLength(); i++) { Node kidNode = nList.item(i); if (kidNode.getNodeName().equals("setColor")) { propertySetNodes.addElement(kidNode); } } return propertySetNodes; } }