Java Utililty Methods XML Element First

List of utility methods to do XML Element First

Description

The list of methods to do XML Element First are organized into topic(s).

Method

NodegetFirstNodeByName(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;