private static Element getFirstNamedElement ( Element element , String name ) { NodeList list = element . getElementsByTagName ( name ) ; if ( list . getLength ( ) == 0 ) { return null ; } return ( Element ) list . item ( 0 ) ; }
Get the first child named as specified from the passed XML element