Eitan, thank you for writing, however I am not sure your answer
relates to my situation, where I want the Java data classes generated
from an XML schema (xsd).
>--- Original Message ---
>From: "Eitan Suez" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Date: 8/27/01 1:29:51 PM
>
>hi,
>
> i am not certain whether this might interest you but i discovered
> (thanks to keith visco) that one can specify a mapping where
> types are interfaces. an xml document to unmarshal can use
> the xsi:type attribute to specify the concrete type at runtime.
>
> here's an example:
>
> mapping:
> <class name="importer">
> <field name="parser" type="iparser" /> <!-- an interface
-->
> </class>
>
> and at runtime i might unmarshal this file:
> <importer>
> <parser xsi:type="java:concreteparserimplementation" />
> </importer>
>
>/ eitan suez
>
>----- Original Message -----
>From: <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, August 27, 2001 12:38 PM
>Subject: [castor-dev] Unmarshalling derived types (not JDO,
just source
>generator)
>
>
>>
>>
>> A while back, with 0.92, I created a schema that had some
simple
>> derived types. Data marshalled out just fine, but there were
>> class cast exceptions when trying to unmarshal. I don't have
>> any more details at the moment, but my question is simply:
is
>> it possible to write a schema that will end up in code that
can
>> to "polymorphically" unmarshal derived types? I am just looking
>> for a yes or no at this moment. Thank you in advance.
>
>-----------------------------------------------------------
>If you wish to unsubscribe from this mailing, send mail to
>[EMAIL PROTECTED] with a subject of:
> unsubscribe castor-dev
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev