Here you can find the source of getChild(Element element, String name)
public static Element getChild(Element element, String name)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class Main { public static Element getChild(Element element, String name) { NodeList nodeList = element.getElementsByTagName(name); return (Element) nodeList.item(0); }// w w w .j a va 2 s . co m }