Ansicht
Dokumentation

ABENASXML_QNAMES_ABEXA - ASXML QNAMES ABEXA

ABENASXML_QNAMES_ABEXA - ASXML QNAMES ABEXA

CPI1466 during Backup   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- Mapping of Qualified Names

This example demonstrates the mapping of XML schema data types for qualified names.

Source Code

Execute

Description

In this example, only two serializations of ABAP data objects are performed to asXML format whose content corresponds to the "{URI}name" format. In the first serialization, the data objects have the type string. In the second they have the type XSDQNAME. In the first case, the content is passed unchanged, but in the second case it is interpreted as a qualified name and the associated namespace declarations are created.

Next, XML data is created, which contains one element with a namespace prefix and one without a namespace prefix. This data is deserialized to ABAP data objects with the type string and the type XSDQNAME. The element with a namespace prefix is deserialized to the data object with the type string unchanged. However, when deserializing to the data object of the type XSDQNAME, a conversion to the format "{URI}name" takes place. The element with no namespace prefix is deserialized unchanged in both cases, since only the empty standard namespace exists.






General Material Data   CPI1466 during Backup  
This documentation is copyright by SAP AG.

Length: 1451 Date: 20240419 Time: 104056     sap01-206 ( 35 ms )