users@jaxb.java.net

anonymous complex type

From: Saurabh Arora <sarora_at_novell.com>
Date: Mon, 02 Jun 2003 23:04:30 -0600

Is it possible not to generate anonymous complex types.

I have a simple xsd as below,

<xsd:element name="A" >
        <xsd:complexType >
                <xsd:attribute name="ID" type="xsd:string"
use="required"/>
                <xsd:attribute name="cost" type="xsd:string"
use="required"/>
        </xsd:complexType>
</xsd:element>


I endup getting classes like

A and AType,

where class A is like

public interface A
    extends javax.xml.bind.Element, primer.po.AType
{


}


which means we can effectively move all logic to A and remove AType.

Is it possible to do the same.
Some kind of global mappings, since i want to do for all anonymous
complexType.

with regards,

saurabh arora