2014 May 26 3:08 PM
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
2014 May 27 6:23 AM
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
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |