Hi! Normally, if you have element xxx and type xxx, XMLBeans generates you types "Xxx" (the instance type) and "XxxDocument" (the document type).
Now, it seems to me that when I explicitely define a java class name to use for the element in xsdconfig, types "Xxx" and "Xxx2" get created instead - the first being the document type and the "...2" being the instance type. I'm using XMLBeans 2, just freshly checked out from the repository. Is this a bug in XMLBeans, or am I doing something wrong? This is my case: ---schema--- <xs:complexType name="factory"> .... /xs:complexType> <xs:element name="factory" type="oc:factory"/> ---/schema--- ---xsdconfig--- <xb:qname name="oc:factory" javaname="FactoryElement"/> ---/xsdconfig--- ---what gets generated--- ------------------ /** * A document containing one factory(@xxxxxx) element. * * This is a complex type. */ public interface FactoryElement extends org.apache.xmlbeans.XmlObject ------------------- and ------------------- /** * An XML factory(@xxxxxxx). * * This is a complex type. */ public interface FactoryElement2 extends org.apache.xmlbeans.XmlObject ------------------- ---/what gets generated--- Thanks, Panu Hällfors -- http://panu.hallfors.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]