SAP IXML SEQUENTIAL PARSING ABEXA



Get Example source ABAP code based on a different SAP table
  


VX_EXA_ONLY

ABAP_IXML - Sequential Parsing
Parses simple XML data sequentially.

ABAP_SOURCE_CODE
DEMO CL_DEMO_IXML_PARSING_SQNTL

ABAP_DESCRIPTION
XML data is first transformed to an input stream object and this object is then processed in a loop using a parser object until the method PARSE_EVENT returns an initial value. To define the sequences, the events CO_EVENT_ELEMENT_PRE and CO_EVENT_ELEMENT_POST of the interface are registered before the loop. These events are raised before and after the parsing of an element. The loop produces the name and value of the current element. The current DOM representation of the XML document is rendered in each loop pass and is also displayed.