To the serialization in general, the rules listed on this page further below apply. You can control these serializations from and to XML documents by assigning stereotypes to data model elements that define an XML schema.
XML_Serialization_Example
Click the icon to download a simple example model that shows how to control XML mappings with stereotypes in Scheer PASDesigner.
General Serialization Rules
The following general serialization rules apply to class to XML serialization:
Level
Rule
general
The XML root element is named after the name of the object that contains the data to be mapped.
class
Each class who's type is not derived from a built-in simple type (e.g. String) is serialized to an XML element.
attribute
Each attribute of simple type (or derived from a simple type) is serialized to an XML attribute of the XML element defined by the containing class.
Each attribute of complex type is serialized to an XML element.
The following basic XML Schema content models are supported by the Designer:
Content Model
Description
all
Serializes all elements of the data model to the XML target document. All names of sub-elements must be unique, the order irrelevant.
sequence
The elements of the data model are serialized by their order definition.