You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by Panu Hällfors <pa...@hallfors.com> on 2005/09/07 13:36:09 UTC

Using guided type naming, the type names are not created correctly

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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org