concrete type in xsi:type instead of element name [message #657493] |
Wed, 02 March 2011 20:23  |
Eclipse User |
|
|
|
I have this weird situation where i define one element of type EventProducer and a container element for it named EventDiagram where i have a reference in EventDiagram to EventProducer (0->*) called flowElements. EventProducer if of type FlowElement.
When I generate the xml from the model classes it looks like this:
<epn:EventDiagram>
<flowElements xsi:type="epn:EventProducer" id="producer1" name="producer1"/>
....
</epn:EventDiagram>
but what I am expecting it to look like is:
<epn:EventDiagram>
<epn:EventProducer" id="producer1" name="producer1"/>
....
</epn:EventDiagram>
For some reason the model is not respecting the xmlns:epn for all elements but only the root one..has anyone ran into a similar situation before? Any help is much appreciated.
Thanks.
[Updated on: Wed, 02 March 2011 20:23] by Moderator
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.09491 seconds