List of utility methods to do XML Element First
Node | getFirstNodeByName(Document d, String s) Returns the first node that matches the specified string. NodeList ns = d.getElementsByTagName(s); Node n = null; if (ns.getLength() > 0) { n = ns.item(0); return n; |