Hi David

You can change both package and class names (and do other useful things
such as ensure that your generated XmlBeans implement a user-supplied
interface) using an xsdconfig file - see, for instance, the article at
http://dev2dev.bea.com/pub/a/2004/11/Configuring_XMLBeans.html for
details on how to do this.

Cheers,

Lawrence

> -----Original Message-----
> From: Bartlett, David HLTH:EX [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, February 01, 2006 2:30 PM
> To: user@xmlbeans.apache.org
> Subject: xsdconfig
> 
> 
>       Since my xml delimiter issue was solved so easily when I thought
it
> was going
> to be a next to impossible task I thought I'd pass on another issue I
had
> given up on.
> 
>       Part of what we want to do with this project is customize the
names
> of the classes
> that are generated because the default names are godawful. I was able
to
> do it with
> JAXB no problem (one of the few things that actually worked) but was
not
> able to do it
> with the xsdconfig file. My guess is that the xsdconfig customization
only
> works on tags declared
> as elements in the xsd while the ones we want to change are defined as
> complex types.
> 
>       For example, currently the the following
> 
>                       <xs:complexType
> name="QUPC_IN000001CA.MCCI_MT000100CA.Message">
> 
>       is causing the following classes to be generated
> 
>                               QUPC_IN000001CAMCCI_MT000100CAMessage
>
QUPC_IN000001CAMCCI_MT000100CAMessageImpl
> 
>       when we would like the following to be created
> 
>                               Message
>                               MessageImpl
> 
>       Is that possible?
> 
> 
> 
>       David Bartlett
>       IT Advisory Professional
>       Contracted Resource to: Managed Operations, KMT
>       Ministry of Health
>       Tel: (250) 952-6462  Fax: (250) 952-6893
>       Email: [EMAIL PROTECTED]
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to