09-29-2008 8:32 AM
Hi All,
Currently We are going upgrade from 4.6C to ECC 6.0 .
We are facing problem while reading the binary data in XML.
In the old system Empty tags are getting filled as <VALUE />.
Where as in ECC 6.0 if the field is empty, the tag is not getting generated.
Please guide,
Thanks & Regards,
Swapnil
09-29-2008 8:56 AM
09-29-2008 9:41 AM
Hi Jorge,
I am using following syntax.
Old System,
create & set encoding...
lo_encoding = lo_ixml->create_encoding(
byte_order = if_ixml_encoding=>co_none
character_set = 'UTF-8' ).
CALL METHOD lo_xml_doc->m_document->set_encoding(
encoding = lo_encoding ).
create output stream...
lo_stream_fact = lo_ixml->create_stream_factory( ).
lo_ostream = lo_stream_fact->create_ostream_xstring(
string = e_xml ).
CALL METHOD lo_xml_doc->m_document->render(
ostream = lo_ostream
recursive = 'X' ).
New Sytem.
create & set encoding...
lo_encoding = lo_ixml->create_encoding(
byte_order = if_ixml_encoding=>co_none
character_set = 'UTF-8' ).
CALL METHOD lo_xml_doc->m_document->set_encoding(
encoding = lo_encoding ).
create output stream...
lo_stream_fact = lo_ixml->create_stream_factory( ).
lo_ostream = lo_stream_fact->create_ostream_xstring(
string = e_xml ).
data : i_size like SY-TABIX .
CALL METHOD lo_xml_doc->RENDER_2_xSTRING(
IMPORTING
stream = e_xml
RETCODE = gd_rc
SIZE = i_size ).
Regards,
Swapnil