private static String getText ( Element element ) { if ( element . getFirstChild ( ) == null ) { return "" ; } return ( ( Text ) element . getFirstChild ( ) ) . getData ( ) . trim ( ) ; }
Get the text inside of the Xml element