If my schema has the following:

<xsd:element name="myElem" type="ElemType" />
<xsd:complexType name="ElemType">
    ...
</xsd:complexType>

The unmarshal() methods generated for MyElem and ElemType, both, return type
ElemType. Is there a way to have the one for MyElem return type MyElem?

Background: I'm updating from Castor 0.9.* to the latest, and am getting
ClassCastExceptions with the existing code, which wants the return type of
unmarshal() to be that corresponding to the element name (MyElem), not its
superclass (ElemType).
-- 
View this message in context: 
http://www.nabble.com/unmarshal%28%29-method-for-named-element-with-%27type%27-attribute-tf4681201.html#a13376534
Sent from the Castor - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to