Here you can find the source of getNodeFromNodeList(NodeList list, String name)
protected static Node getNodeFromNodeList(NodeList list, String name)
//package com.java2s; /*/*from ww w .ja v a 2 s .c o m*/ * @author kebin, ucchy * @license LGPLv3 * @copyright Copyright kebin, ucchy 2013 */ import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { protected static Node getNodeFromNodeList(NodeList list, String name) { for (int i = 0; i < list.getLength(); i++) { Node node = list.item(i); if (node.getNodeName().equals(name)) { return node; } } return null; } }