Use the xsdconfig file to change package names. See the following: http://wiki.apache.org/xmlbeans/XmlBeansFaq#configPackageName .

But keep in mind that XmlBeans doesn’t support using two or more sets of java classes (in different packages) mapped to schema type/elements that have the same names and target namespaces, using all in the same class loader. Depending on the direction you are using for the java classes to schema types mapping, some features might not work correctly. This is because even though the package names for the java classes are different, the schema location for the schema metadata (.xsb files) is the same and contains the corresponding implementing java class, so the JVM will always pick up the first on the classpath. This can be avoided if multiple class loaders are used.

 

Cezar

 


From: ian tabangay [mailto:[EMAIL PROTECTED]
Sent: Monday, January 16, 2006 2:49 AM
To: user@xmlbeans.apache.org
Subject: Change generated XSB files with xsdconfig

 

Hi. I’m new at using XMLBeans and ran into a bit of a problem. I have 2 schemas which are almost identical except for a few elements that have been removed/added since one is a revision of the other. I need to maintain both schemas for a while until all of the users have finally migrated to the newly revised schema. My problem is that both schemas don’t have any specified targetNamespaces so all generated xsb files are found in **/_nons directory. Is there a way to change this location possibly with the xsdconfig file?
 

 

Ian Tabangay

Supply Chain Networks, inc

[EMAIL PROTECTED]

 

Reply via email to