sapdev logo background
sapdev logo sapdev logo
Comments

SAP SXML PARSING STEPS ABEXA documentation, setup help and example usage



Return to SAP documentation index


ARTICLE

sXML Library, Steps in Token-Based Parsing
This example demonstrates various steps in token-based parsing .

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
Using simple XML data, this example demonstrates how various steps work, alongside NEXT_NODE and NEXT_ATTRIBUTE , in token-based parsing with an XML reader from sXML Library .
  • The method CURRENT_NODE moves an iteration across an attribute list back to its start.

  • The method PUSH_BACK first moves an iteration from a value node to the associated opened element and from there to the opened element of the superelement.

  • The method SKIP_NODE then parses all subnodes up to the closed element of the XML data.

  • In this example, the demonstration methods process a known XML data structure. A further example
    demonstrates the methods without the entire structure of XML data being known in advance.
    Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




    SXML_PARSING_METHODS_ABEXA
    SXML_READER_WRITER_ABEXA




    comments powered by Disqus