Here you can find the source of getFirstElementByName(String name, Element parent)
public static Element getFirstElementByName(String name, Element parent)
//package com.java2s; //License from project: Open Source License import org.w3c.dom.Element; public class Main { public static Element getFirstElementByName(String name, Element parent) { return (Element) parent.getElementsByTagName(name).item(0); }/* w w w.j a v a2 s .co m*/ }