public static String getAttributeValue ( final Element element , final String name ) { final Node node = element . getAttributes ( ) . getNamedItem ( name ) ; if ( node != null ) { return node . getNodeValue ( ) ; } return null ; }
Returns the attribute value for the given attribute name .