You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Monica Granbois <mg...@abebooks.com> on 2004/11/17 02:32:17 UTC

xsdconfig question

Hello,

I want to map schema type names to the Java type names.  Is there anyway that
the java name can use the word 'Document' in the class name?

For example, I have the following in my xsdconfig file:

<xb:qname name="xs:tt" javaname="TitleDocument"/>

When I compile the schema, the java class that is generated is named:
TitleDocument1

Is there anyway the generated class could be named TitleDocument?

I had originally defined the schema using longish tag names. For example:
<xs:element ref="xld:title"/>. I had compiled XmlBean classes off of this
schema. I did not provide an xsdconfig file, so I had the default class names
i.e. TitleDocument. 

However, I now have a requirement to use shorter tag names; hence 'title'
becomes 'tt'.  I need to regenerate the classes, but I would like to have the
same class names that I had before.  Is this possible? Or will I need to
refactor my code to use the new class names?

Thanks,

Monica


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org