Castor serialize to XML properties of a derived object never declared in the XML
Schema used to create Java Castor classes.
For example if I have this class which was generated from an XML schema:
MyBaseClass
{
int myValue;
}
And during implementation I have this derived class
MyDerivedClass extends MyBaseClass
{
int mySecondValue;
}
So now when I generate XML I got something like:
<MyBaseClass xsi:type="MyDerivedClass">
<myValue>..</myValue>
<mySecondValue>..</mySecondValue>
</MyBaseClass >
So this break the XML Schema because [mySecondValue] doesn't exist in the schema!
Seems to be a bug, please confirm. Maybe their is an option that say to Castor to not
generate stuff on the fly. I don't have any MyDerivedClassDescriptor class!
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user