05-15-2012 8:58 AM
Hello All,
I am generating an XML file using ixml interface.I want to remove the header "<?xml version="1.0" encoding="utf-8" ?>" from the XML file.
Is there any way to do this through IXML interface? I was looking at simple transformations, but my everything is ready using IXML, for generating program again using simple transformations will take time.
Is there any way to convert the generated table through IXML and that I can use in simple transformations?
Thanks in advance,
regards,
Madhuri
05-15-2012 9:16 AM
you can use replace all occurrence
<?xml version="1.0" encoding="utf-8" ?> in the xml with ' ' (an empty value)
05-15-2012 9:16 AM
you can use replace all occurrence
<?xml version="1.0" encoding="utf-8" ?> in the xml with ' ' (an empty value)
05-15-2012 10:51 AM
Hello Former Member ,
Thanks for reply .
But i was able to sort it out by following way :
call transformation ID
source xml L_XML_TABLE
result xml L_STRING
options
XML_HEADER = 'no'.
call transformation ID
source xml L_STRING
result xml L_XML_TABLE
.
Regards,
Madhuri
05-15-2012 1:09 PM
05-16-2023 7:46 AM
Please check following solution:
data(document) = ixml_core->create_document( ).
document->set_declaration( abap_false ).
then render the document.