Here you can find the source of getNode(NodeList nodes, String tagName)
static Node getNode(NodeList nodes, String tagName)
//package com.java2s; //License from project: Apache License import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { static Node getNode(NodeList nodes, String tagName) { for (int x = 0; x < nodes.getLength(); x++) { Node node = nodes.item(x); if (node.getNodeName().equalsIgnoreCase(tagName)) { return node; }//from w w w . j ava 2s. c o m } return null; } }