Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

remove using ixml

Madhurivs23
Participant
0 Kudos

     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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

you can use replace all occurrence

<?xml version="1.0" encoding="utf-8" ?> in the xml with ' ' (an empty value)

4 REPLIES 4

Former Member
0 Kudos

you can use replace all occurrence

<?xml version="1.0" encoding="utf-8" ?> in the xml with ' ' (an empty value)

0 Kudos

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

0 Kudos

Hi Madhuri thanks a lot for sharing

Best Regards,

Sarveshvaran

Michael_Keller
Active Contributor

Please check following solution:

data(document) = ixml_core->create_document( ).

document->set_declaration( abap_false ).

then render the document.

---
I ❤️ ABAP - with arms wide open for the tech community worldwide...