asXML - Mapping of XML Fragments
asXML allows whole XML fragments (elements together with their subelements) to be mapped that exist
in ABAP in XML format and that are the content of data objects or of parts of data objects (such as
structure components or table rows). The data objects must have the type
xstring and be declared with reference to the
- When serialized, a data object of this type (or part of a data object) must contain the UTF8 representation of a complete XML fragment. The content of the root element of the XML fragment is passed unmodified to the XML element for which the data object was created. The name of the root element of the XML fragment is inherited as the content of an attribute (asx:root) added to the XML element.
- When deserialized, an XML element that contains the attribute asx:root must be assigned to a data object (or part of a data object) of this type. An XML fragment is created in the data object that has the content of the attribute as a root element and whose content is inherited unmodified from the XML element.
- An XML fragement that exists in a data object of type
xstringand that is not declared with reference to the domain XSDANY is formatted as the XML schema type xsd:base64Binary in accordance with the rules for mapping elementary data types.
- An XML element that contains the attribute asx:root cannot be deserialized to data objects that are not declared with reference to the domain XSDANY.