Java tutorial
//package com.java2s; import org.w3c.dom.*; public class Main { public static Node getNamedChild(Node node, String name) { Node retVal = null; NodeList children = node.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if (child.getNodeName() == name) { retVal = child; } } return retVal; } }