Java tutorial
//package com.java2s; import org.w3c.dom.Node; import org.w3c.dom.NodeList; public class Main { public static Node getFirstChildNodeNamed(Node node, String name) { NodeList nodes = node.getChildNodes(); for (int x = 0; x < nodes.getLength(); x++) { if (nodes.item(x).getNodeName().equalsIgnoreCase(name) == true) { return nodes.item(x); } } return null; } }