Unfortunately, I've read that one already as well as several others very
similar to it. And while I was able to change the package name I was not able
to do the same for the class name. Here is the simple file I had created.


        <xb:config 
xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config";>
                <xb:namespace uri="urn:hl7-org:v3">
                        
<xb:package>com.ibm.sample.xmlbeans.QUPC_IN000001CA</xb:package>
                </xb:namespace>

                <xb:qname name="QUPCIN000001C.AMCCIMT000100CA.Message" 
javaname="Message"/>
        </xb:config>


Have I defined the class name conversion incorrectly?


-----Original Message-----
From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 01, 2006 2:49 PM
To: [email protected]
Subject: RE: xsdconfig


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: [email protected]
> 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]


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

Reply via email to