@ SuppressWarnings ( { "rawtypes" , "unchecked" } ) public static StringBuffer getXML ( StringBuffer sbXML , String strParam , Object objValue ) { Util . addStartTag ( sbXML , strParam ) ; if ( objValue instanceof Map ) { Util . addXMLMap ( sbXML , ( Map ) objValue ) ; } else { String strValue = Constant . BLANK ; if ( objValue != null ) strValue = objValue . toString ( ) ; if ( Util . isCData ( strValue ) ) strValue = CDATA_START + strValue + CDATA_END ; sbXML . append ( strValue ) ; } return Util . addEndTag ( sbXML , strParam ) . append ( Constant . RETURN ) ; }
Convert this value to a XML string .