|Re: Single class, multiple lines in XML represenation. [message #1830834 is a reply to message #1830798]
||Wed, 05 August 2020 03:48
| Ed Merks
Registered: July 2009
The short answer is no. In general, the names of elements and attributes in the XML serialization correspond to the names of features (references and attributes) in the Ecore model. They do not ever correspond to the value of any instance data.|
The long answer is, anything is possible if you specialize the serialization and deserialization yourself. Certainly XML Schema has the concept of an attribute wildcard and this maps to an EAttribute of type FeatureMap in the Ecore model. But that's a complex API to use...
Given you've not actually described your model in enough detail that I know what (1) and (2) correspond to, it's hard to say much of anything concrete. In any case, nesting in the serialization only comes from containment references in the model.
Professional Support: https://www.macromodeling.com/
Powered by FUDForum
. Page generated in 0.01518 seconds