SAP SXML PARSING STEPS ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_SXML - Steps in Token-Based Parsing
This example demonstrates various steps in token-based parsing.

ABAP_SOURCE_CODE
DEMO CL_DEMO_SXML_TOKEN_RDR_STEPS

ABAP_DESCRIPTION
Using simple XML data, this example demonstrates how possible steps work, alongside NEXT_NODE and NEXT_ATTRIBUTE, in token-based parsing with an XML reader from sXML Library.
The method CURRENT_NODE resets an iteration across an attribute list back to its start.
The method PUSH_BACK first branches an iteration from a value node to the associated element opening and from there to the element opening of the superelement.
The method SKIP_NODE then parses all subnodes up to the end of element of the XML data.
In this example, the demonstration methods process a known XML data structure. A further executable example demonstrates the methods without the entire structure of XML data being known in advance.