Hi everybody,
In my schema I have a complexType (myComplexType) that extends another
(myBasicType), this last one being abstract. myBasicType is referenced
as element in another complexType (myContainerType). This translates by
inheritance amongst the classes in Java. But when I build a document
from scratch using XmlBeans' object model, in the xml output of
myContainerType, the node name of this specific element is
systematically myBasicType with an attribute xsi:type="myComplexType".
I have tried :
myBasicTypeInstance.changeType(myComplexTypeInstance.schemaType());
myBasicTypeInstance = myComplexTypeInstance;
and
myContainerTypeInstance.setmyBasicType(myComplexTypeInstance);
But in both cases it doesn't work.
Could somebody please let me know how to sort this?
Thanks,
Pierre