Application Development and Automation 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: 
Read only

Read XML content in ABAP

Former Member
0 Likes
684

Hi Experts,

I have a requirement, where I need to Parse the XML file after reading it from application server. Based on the data, I need to add some Tags to XML data.

Can we achieve the solution in ABAP.

Request your expertise.

Thank you,

Amit

Hi Experts,

I have a requirement, where I need to Parse the XML file after reading it from application server. Based on the data, I need to add some Tags to XML data.

Can we achieve the solution in ABAP.

Request your expertise.

Thank you,

Amit

1 REPLY 1
Read only

Former Member
0 Likes
545

Hi Amit,

Yes, you can achieve this in SAP either by creating a DOM representation of the XML document, or by the parser firing events as logical elements are encountered in a run through an XML document.

Refer the following documents for more details.

DOM-based method - Parsing an XML document DOM-based - Application Development on AS ABAP - SAP Library 

Event Based - Parsing an XML document event-based - Application Development on AS ABAP - SAP Library 

Refer this document for sample code - Parse an xml file and insert values in ABAP - ABAP Development - SCN Wiki

Regards

Anoop