I figured it out. I'm not sure why the CodeGen options don't work but setting the targetNamespace and xmlns in the xsd worked.

On Jul 13, 2009, at 9:03 AM, Robert La Ferla wrote:

I have a XSD.  When I run CodeGen, it generates the classes in the src
directory but they are not in a package.  It tried the -p and -n
options to no avail.  How do I get CodeGen to put my classes in a
package?  Do I have to modify the schema?  If so, a short example
would be appreciated.  Or can I just pass the package name to CodeGen?

java -cp ../../lib/jibx-tools.jar org.jibx.schema.codegen.CodeGen -p
com.mycompany.myproject -t src -w myschema.xsd

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users

Reply via email to