If you have access to the svn src you can see some examples of these apis under the cases directory. http://svn.apache.org/viewvc/xmlbeans/trunk/test/cases/xbean/compile/ -jacobd
On Thu, Dec 11, 2008 at 12:08 PM, Radu Preotiuc-Pietro <[email protected]> wrote: > That's what I was saying. The part that compiles the Java source files and > loads everything (or packages everything in a jar) is not supported, it's > something that you will have to do. > > In all, there are 3 main steps to get from XSD to xmlbeans.jar: > > 1. Compile the XSD to the internal XMLBeans representation > 2. Generate the Java source files from the internal representation > 3. compile the Java sources and package everything into a Jar. > > XmlBeans.compileXsd([...]) does step 1, XmlBeans.compileXsd([...]) does 1+2, > so what's left for you to do is 3. > > Radu > > ________________________________ > From: Asaf Lahav [mailto:[email protected]] > Sent: Wednesday, December 10, 2008 4:33 AM > To: [email protected]; [email protected] > Subject: RE: How to generate XmlBeans jar using API instead of SCOMP? > > Thanks Radu, > > The problem is that I can't find information on how to get from an XSD to a > compiled xmlbeans jar (equivalent to the SCOMP artifacts). > > Is the compilation process fully supported through XmlBeans API? Or am I > supposed to generate the source files and initiate the compilation? > > > > > > From: Radu Preotiuc-Pietro [mailto:[email protected]] > Sent: Wednesday, December 10, 2008 3:22 AM > To: [email protected] > Subject: RE: How to generate XmlBeans jar using API instead of SCOMP? > > > > Asaf, > > > > Take a look at > > > > XmlBeans.compileXsd([...]) and > > XmlBeans.compileXmlBeans([...]) to also generate the Java source files. If > you do that, you will then need to compile and load the Java classes > yourself (we don't offer support for that because it is dependent on your > execution framework and not really XML-related). > > > > You'll find more details by consulting the JavaDoc for the two methods and > doing a search on the mailing list, the topic has come up before. > > > > Radu > > > > ________________________________ > > From: Asaf Lahav [mailto:[email protected]] > Sent: Tuesday, December 09, 2008 3:54 AM > To: [email protected] > Subject: How to generate XmlBeans jar using API instead of SCOMP? > > Is it possible to generate an XmlBeans jar out of a schema using XmlBeans > API instead of using SCOMP? > > > > Thanks in advance, > > Asaf > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

