users@jaxb.java.net

Re: Getting JAXB to instantiate your subclasses

From: Allister Bertram <abertram_at_checkfree.com>
Date: Tue, 08 Apr 2003 08:02:33 -0400

Ryan Shoemaker wrote:

> Are you placing the <implClass> customization on the element declarations
> or the anonymous complexType declarations? Do you have:
>
> <xs:element name="ElementA">
> <xs:complexType>
> <xs:annotation><xs:appinfo>
> <jxb:implClass name="com.acme.foo.MyAImpl"/>
> </xs:appinfo></xs:annotation>
> ...
> </xs:complexType>
>
> or:
>
> <xs:element name="ElementA">
> <xs:annotation><xs:appinfo>
> <jxb:implClass name="com.acme.foo.MyAImpl"/>
> </xs:appinfo></xs:annotation>
> <xs:complexType>
> ...
> </xs:complexType>
>
> If you're placing the customization on the element rather than the type,
> that might explain the problem.

Yes, it appears I'm placing the customization in the wrong position. I'll
try again with
the customization on the type.

Thank you, Ryan.

Allister