Get Example source ABAP code based on a different SAP table
VERSION 5 IN
sXML Library sXML Library provides an API consisting of classes and interfaces for reading (validating parses) and rendering (validating writes) of XML data in different formats and from different sources or to different targets.
Supported Formats
Parsing
Rendering
BEGIN_SECTION VERSION 5 OUT Unlike in the iXML Library, END_SECTION VERSION 5 OUT no document is created in DOM format and no DTDs (Document Type Definitions) are supported. Instead, the nodes of the tree structure represented by the XML data are processed serially and only the current node can always be accessed. The node can be accessed using token-based or object-oriented methods. The classes and interfaces are described in the class and interface documentation.
Latest notes:
sXML Library supports the UTF character representation of the Unicode character set and hence also characters from the surrogate area.
The sXML Library methods are also used internally in calls of Simple Transformations using the statement CALL TRANSFORMATION .
The serial processing of XML data in sXML Library involves the parsing and rendering of each node front to back without a preview. This is particularly clear in the parser method SKIP_NODE, which skips a node, but still has to parse it with all subnodes. This characteristic can be exploited to check whether data is well-formed and to test the copying of XML data to a writer. NON_V5_HINTS
For examples, see the corresponding executable programs in the example library and the package SXML_DEMO.
If access to all nodes of an XML document in the memory is not required and no DTD is needed, sXML Library is an alternative to iXML Library with better performance. It also supports more XML formats and enables the handling of JSON in ABAP programs. ABAP_HINT_END