private String removeCDataElements ( String value ) { String data = value . trim ( ) ; if ( data . startsWith ( CDATA_SECTION_START ) ) { data = value . substring ( CDATA_SECTION_START . length ( ) ) ; data = data . substring ( 0 , data . length ( ) - CDATA_SECTION_END . length ( ) ) ; } return data ; }
Cut off CDATA elements .