2013 Jan 16 9:05 AM
Hello,
I have an android manifest file which is in binary. I want to convert this to XML or string. I need to get some data from this file.
I did this but still the value is not in a readable format. If required i can attach the that file.
/doc/cl_as_document_utils=>convert_bintab_to_xstring(
exporting
it_binary_tab = lt_content
i_binary_size = lv_filelength
receiving
r_xdata = ev_xstring
).
lv_string = /doc/cl_as_document_utils=>convert_xstring_to_string( i_xdata = ev_xstring ).
Thanks & regards,
Aswin
2013 Jan 16 9:45 AM
Hello Aswin,
Try this:
data:
l_xstring type xstring,
l_xml type string.
CALL TRANSFORMATION id
SOURCE XML l_xstring
RESULT XML l_xml.
cl_uxs_xml_services=>show(
id_string = l_xml
).
Kind regards,
Hendrik
2013 Jan 16 10:07 AM
Hi Hendrick,
The normal transformation din't work. Because it is not in direct XML. It is in binary xml format.
Regards,
Aswin
2013 Jan 16 12:41 PM
Hello Aswin,
sure. But the CALL TRANSFORMATION is able to transform even a xstring-XML.
The question is: How do you import your manifest-XML?
Kind regards,
Hendrik
2013 Jan 16 12:46 PM
Hi,
The file will be uploaded from UI and it will be in binary format.
From binary i am trying to convert it to Xstring and from there to either XML or String in a readable format.
Regards,
Aswin
2013 Jan 16 4:24 PM
Try these FM's:
SCMS_BINARY_TO_XSTRING
SCMS_BINARY_TO_STRING
Regards,
Felipe
2013 Jan 17 7:23 AM
Hi Felipe,
As i said earlier it is not a straight forward conversion. I tried all these things already and it din't work out. This Manifest file is a Binary XML file.
Regards,
Aswin