question: public static Element firstChildElement ( Element element , String childElementName ) { if ( element == null ) return null ; if ( UtilValidate . isEmpty ( childElementName ) ) return null ; Node node = element . getFirstChild ( ) ; if ( node != null ) { do { if ( node . getNodeType ( ) == Node . ELEMENT_NODE && ( childElementName == null || childElementName . equals ( node . getLocalName ( ) != null ? node . getLocalName ( ) : node . getNodeName ( ) ) ) ) { Element childElement = ( Element ) node ; return childElement ; } } while ( ( node = node . getNextSibling ( ) ) != null ) ; } return null ; }
target:  Return the first child Element with the given name; if name is null returns the first element. 