Please use the EMF newsgroup (eclipse.tools.emf) for future questions
about EMF. More comments below.
Florian Marienfeld wrote:
> suppose I have this metamodel:
> class Chair has a reference named "parts" of type "Part". Part is
> superclass to classes Leg and Arm.
> by default a model instance gets serialized to this:
> <chair:Chair xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> <parts xsi:type="chair:Arm"/>
> <parts xsi:type="chair:Leg"/>
> What I would like is:
> What is the way to go?
Best is to write a schema with substitution groups and follow the steps
outlined in http://ed-merks.blogspot.com/2007/12/winters-icy-grip.html
to avoid ending up with a horrible API.
> Best regards, thanks in advance,