diff --git a/src/zcl_excel_writer_2007.clas.abap b/src/zcl_excel_writer_2007.clas.abap index 1b457bc..6958cb7 100644 --- a/src/zcl_excel_writer_2007.clas.abap +++ b/src/zcl_excel_writer_2007.clas.abap @@ -7819,6 +7819,17 @@ METHOD render_xml_document. lo_streamfactory = me->ixml->create_stream_factory( ). lo_ostream = lo_streamfactory->create_ostream_xstring( string = ep_content ). + + " remove illegal characters in the XML according to the note 1750204 + " the following method is only available if the corresponding kernel is used + TRY. + CALL METHOD lo_ostream->('SKIP_NON_XML_CHARACTERS') + EXPORTING + is_skipping = abap_true. + CATCH cx_sy_dyn_call_illegal_method. + + ENDTRY. + lo_renderer = me->ixml->create_renderer( ostream = lo_ostream document = io_document ). lo_renderer->render( ). ENDMETHOD.