SAP IXML PARSING ABEXA



Get Example source ABAP code based on a different SAP table
  


VX_EXA_ONLY

ABAP_IXML - Parse to DOM
Parses simple XML data to a DOM representation.

ABAP_SOURCE_CODE
DEMO CL_DEMO_IXML_PARSING

ABAP_DESCRIPTION
XML data is first transformed to an input stream object and then imported into a DOM object using a parser object. If parsed successfully, the nodes of the DOM object are compiled as output texts in the method process_dom.
An iterator is used to access the nodes. Each element is checked to see whether it has attributes. Existing attributes are then read.
If the XML data has errors, for example because a closing tag was renamed, the method process_errors is executed, and the appropriate error message is displayed.