Get Example source ABAP code based on a different SAP table
Access to XML Using Class Libraries This example demonstrates parsing and rendering using an example class.
ABAP_SOURCE_CODE DEMO CL_DEMO_CL_XML_ACCESS
ABAP_DESCRIPTION The example class CL_DEMO_XML_ACCESS> > wraps methods of the sXML Library>.
Method PARSE_XML> allows the parsing of the relevant data of an XML file from a byte string into an internal table whose structure is defined in that class.
Method RENDER_XML> allows the rendering of the data from such a node table into an XML file in a byte string.
Method GET_HIERARCHY_DATA> allows retrieving information about the hierarchical relations between the XML nodes stored in the internal table. For that, the internal table is accessed with hierarchy functions> of ABAP SQL. As an example, an XML file is accessed that results from a transformation of an internal table into asXML> format by using the predefined identity transformation ID>>.