Two newbie questions

2007-03-29 Thread Diego García González
Hi, I'm new to XMLbeans and I've got some questions about it: * Is there a way to use scomp for obtaining .java source files which I could use in my application?. I mean, not obtaining a .jar, but only the source files. I know there's a -srconly option, but I can't use those source files in

Ordering Issues with XMLBeans

2007-03-29 Thread Orville Pike
Hi All, I ran into this issue a while back but just figured out the cause. I'm using XMLBeans 2.2.0 with JDK 1.5. The issue is that XMLBeans if your xml document does not have elements in the same order as they are listed in the XSD, then XMLBeans is unable to parse the document at runtime.

RE: Ordering Issues with XMLBeans

2007-03-29 Thread Wing Yew Poon
Orville, XMLBeans uses the schema. In your schema, the type of the LevelOne element is defined as a sequence. In a sequence, the order of the elements matter. XMLBeans is working correctly. If you don't want the order to matter, you should rewrite your schema, e.g., xs:element name=LevelOne

RE: Two newbie questions

2007-03-29 Thread Wing Yew Poon
Diego, 1. If you do scomp -src srcdir -srconly -d bindir schema then the java files are generated in the srcdir you specify and the binary files, including the TypeSystemHolder.class, are generated in the bindir you specify. When you compile and use the java files, make sure you include the files