users@jaxb.java.net

Re: Getting JAXB to instantiate your subclasses

From: Allister Bertram <abertram_at_checkfree.com>
Date: Wed, 09 Apr 2003 13:21:22 -0600

Here's the customization in my XML Schema:

  <element name="Widget">
    <complexType>
      <annotation>
        <appinfo>
          <jxb:class implClass="com.blah.WidgetTransformer"/>
        </appinfo>
      </annotation>
      <sequence>
        etc.

I have compiled the schema using xjc without the customization, with no errors. When I include the above customization, I get the error:

[ERROR] Cannot derive a name from schema. A name attribute specified to the <class> customization.