Community
Participate
Working Groups
There are cases when it is convenient to be able to take a model or a part of a model and serialize it as XML without spending time specifying detailed binding. This comes up, for instance, when debugging or writing unit tests. To address this requirement, Sapphire should support default XML binding that doesn't require any XML binding annotations to be used.
This feature has been implemented. Unit tests have been added. Documentation is available under Sapphire Developer Guide -> Modeling Framework -> XML -> Binding -> Default XML Binding. Implementation Details Default XML binding uses property and type names for element names in XML. More formally: 1. A model element is mapped to an XML element whose name is derived from model element type. The local type name is used (no package prefix) and the 'I' prefix is removed. 2. A property is mapped to an XML element whose name is equal to the property name. 3. The value of a value property is stored as text content inside the property's XML element.
Marking as fixed.
Removed @XmlBinding from an example, and verify that default XML binding was generated as described in the docs.