Hi Keith, Keith Palmer Jr. wrote: > Hey there, > > So I have a gigantic .XSD file ... What size are we talking about here ?
> ... that I'd like to turn into .class files, .. Well, you can always use the XML code generator (source generator) to generate Java source code from your XML schema(s), and subsequently use your Java compiler to turn those into class files. > but I haven't quite figured out where to start. Read on .... > *Ideally* these .class files > would not depend on any castor files/packages, so I can use them even if I > don't have the castor jars/code around (is this possible with Castor?). Yes, that's possible. Castor by default generates descriptor files in addition to the Java files, but this can be turned off. Apart from that, Castor by default will inject static marshal() and unmarshal() methods into your Java classes, which can be disabled as well. > I downloaded some .jar files, and tried something like this from a shell: > java -classpath "castor-1.3-core.jar;castor-1.3-codegen.jar" > org.exolab.castor.builder.SourceGeneratorMain -i foo-schema.xsd -package > com.xyz > > Which got me here: > Exception in thread "main" java.lang.NoClassDefFoundError: > org/exolab/castor/builder/SourceGeneratorMain What build system are you using ? Ant ? Maven ? If it's any of those two, Castor has support for both. > Um... so I guess I don't know enough about java to know where to go from > there. Where do I find that file? Which .jar files do I need to put in my > classpath to make it actually generate code...? If it's a lack of Java experience that makes it difficult for you, I am afraid that we cannot be of any real help here. Please have a look at the reference guide available at http://castor.org/reference/html/index.html where you'll find any documentation needed to get yourself going. > Thanks in advance, sorry for the newbie question! No problem. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email

