yes using a file ended with .xsdconfig. I send you an example:

<?xml version="1.0" encoding="UTF-8"?>
<xb:config
  xmlns:xb="http://xml.apache.org/xmlbeans/2004/02/xbean/config">
 
<xb:namespace uri="http://www.w3.org/2000/09/xmldsig#">
<xb:package>com.example.xmlbeans</xb:package>
</xb:namespace> 

</xb:config>

BE aware because this file must be into classpath. In ant file do :

<xmlbean javasource="1.5" srcgendir="${dest.dir}/lib/sources/${output.name.importer}"  classpath="${root}/lib/xbean.jar;${root}/lib/jsr173_1.0_api.jar" classgendir="${dest.dir}/classes" destfile="${dest.dir}/${output.name.importer}.jar" debug="true" noupa="true">
<fileset dir="." includes="*.*"/>
</xmlbean>

Look that fileset . is the directory where i have my xsd file and .xsdconfig

El dj 09 de 03 del 2006 a les 15:16 +0100, en/na pat va escriure:
Hi all,

I want to generate xmlbean from the xml schema but with different name than it
is in the schema (e.g. in schema is Beans and generated will be MyBean).

Why I need it is that I need to use AXIS2 with XMLBeans support, but on the
client side I need different names os on the server - this is only one way
from server to client.

Is there a way how to do it ???

Thanks a lot.

     Pat

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

La información contenida en el presente e-mail es confidencial y está reservada para el uso exclusivo de su destinatario. Se prohíbe estrictamente la distribución, copia o utilización de esta información sin el previo permiso de su destinatario. Si usted no fuera el destinatario, por favor notifíquelo inmediatamente al remitente y elimine el presente mensaje de su sistema informático.

Information contained in this e-mail is confidential and is intended for the use of the addressee only. Any dissemination, distribution, copying or use of this communication without prior permission of the addressee is strictly prohibited. If you are not the intended addressee, please notify the sender immediately by reply and then delete this message from your computer system.

Reply via email to