SAP SXML OO PARSING ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_SXML - Object-Oriented Parsing
Simple object-oriented reading of XML data.

ABAP_SOURCE_CODE
DEMO CL_DEMO_SXML_OO_READER

ABAP_DESCRIPTION
The example has the same basic functions as the executable example for token-based parsing. Instead of the method NEXT_NODE, however, the method READ_NEXT_NODE is used here, and its return value is analyzed. Depending on the current node type, a downcast is performed to a suitable interface and attributes and methods are used to read the attributes of the current node.