Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Data Interfaces and Communication Interfaces →  ABAP and XML 

asXML - Canonical XML Representation

The canonical XML representation asXML is the format of an XML document that results from a serialization of ABAP data using XSLT programs, or that is required for a deserialization using XSLT. This format is also known as ABAP Serialization XML.

The canonic XML conversion supports all ABAP data types. The elementary ABAP data types are mapped to a set of XML schema data types. In the other direction, special domains are available for furtherXML schema data types.

The asXML format is significant in the following cases:

  • The mapping of elementary ABAP data types toXML schema data typesand the other direction.
  • If you have written any XSL transformations of ABAP data into an XML format, the asXML format of the serialization result must be known.
  • External XML documents whose content is to be deserialized into ABAP data must be transformed to asXML format.
  • XML Schema Data Types The asXMLmapping of elementary ABAP data types toXML schema data types (and the other direction) is also used in Simple Transformations

Description of the asXML format:

Other versions: 7.31 | 7.40 | 7.54


Note

The asXML format of serialized ABAP data or objects can be created and examined using the predefined identity transformation ID. This transformation is not, however, symmetrical with respect to text strings that contain only blanks. A symmetrical transformation that creates the asXML format of ABAP data (excluding reference variables) can be created using the ST statement tt:copy (see Example).

Continue

asXML - General Format

asXML - Mapping of ABAP Data Types

asXML - Mapping Additional XML Schema Data Types

asXML - Mapping of XML Fragments

asXML, Examples of Mappings