Working with XML files is a common task in any SAP project, especially where we have multiple systems (SAP or non-SAP) and we need to integrate them with the interface. In a NetWeaver environment, there are multiple approaches to handling the XML format. You can use one of the standard classes prepared by SAP, or create your own transformation using an SAP declarative language called Simple Transformation (ST). On the basis of examples prepared in this chapter, you will learn how to apply each method and learn about their advantages and disadvantages.
The following topics will be covered in this chapter:
- Parsing and displaying XML files into the CL_XML_DOCUMENT class
- Changing the content of an XML using the CL_XML_DOCUMENT class
- Introduction to ST
- XML serialization and deserialization using ST
- JSON-XML format in ABAP
- Converting XML to JSON with the sXML...