You can pass in the class via the Unmarshaller.

Unmarshaller unm = new Unmarshaller(TopLevelComplexType.class);

--Keith

Dean Hiller wrote:
> 
> If my schema is
> <xsd:element name="topLevel" type="topLevelComplexType"/>
> <xsd:element name="topLevel2" type="topLevelComplexType"/>
> //definition of topLevelComplexType follows.
> 
> How in the world does the unmarshaller know how to unmarshal a
> TopLevelComplexType object????
> 
> I am having trouble because I just wrote a test case that fails because
> I instantiate a DeviceID but then when it is unmarshalled, it uses
> DeviceID as the element which completely does not follow the schema.  I
> am very confused now as to using type generation.
> thanks for any clarity you can give me,
> Dean
> 
> -----------------------------------------------------------
> 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

Reply via email to