I've read through the archive for topics relating to how xjc output can
be directed to various packages and understand some of the limitations.
I'm using a binding file similar to the one in the ubl example. However,
when I generate jaxb classes, an AnyType class is created in a
org.w3._2001.xmlschema package. Since this class is not explicitly
associated with a schema, how do I customize the package it ends up in
without a schemaLocation?
Here's what my binding file currently looks like. I'm able to customize
the package for the schema and the imported schemas.
<jxb:bindings version="1.0" xmlns:jxb="
http://java.sun.com/xml/ns/jaxb"
xmlns:xs="
http://www.w3.org/2001/XMLSchema"
xmlns:xjc="
http://java.sun.com/xml/ns/jaxb/xjc"
targetNamespace="B">
<jxb:bindings schemaLocation="citConfig.xsd" node="/xs:schema">
<jxb:schemaBindings>
<jxb:package
name="com.verifone.isd.vsms2.applet.cit.jaxb"/>
</jxb:schemaBindings>
</jxb:bindings>
<jxb:bindings schemaLocation="adsConfig.xsd" node="/xs:schema">
<jxb:schemaBindings>
<jxb:package name="com.common.jaxb"/>
</jxb:schemaBindings>
</jxb:bindings>
<jxb:bindings schemaLocation="../vsmsDataTypes.xsd" node="/xs:schema">
<jxb:schemaBindings>
<jxb:package name="com.common.jaxb"/>
</jxb:schemaBindings>
</jxb:bindings>
<jxb:bindings schemaLocation="../vsmsBaseTypes.xsd" node="/xs:schema">
<jxb:schemaBindings>
<jxb:package name="com.common.jaxb"/>
</jxb:schemaBindings>
</jxb:bindings>
</jxb:bindings>
Thanks,
Scott Kaszyk
Senior Software Design Engineer
Email: Scott_Kaszyk_at_VeriFone.com
Office: (727)953-4103
Fax: (727)953-4285