They are backwards compatible, but they are not "forwards" compatible. What I mean by that is that a newer version of XmlBeans (say 2.3.0) can read jars compiled with an older version (say 2.2.0). But XmlBeans 2.2.0 can't read jars compiled with XmlBeans 2.3.0. That would be a much stronger requirement and few software offers this guarantee (think Java: you can use JDK 1.5 to run classes compiled with JDK 1.4 but if you try to run in JDK1.4 classes compiled with JDK1.5, you get an error).
To answer your second question, there is a script in the bin directory of the distribution "dumpxsb". If you do "dumpxsb xmltypes.jar", it will spew a "Major version" and a "Minor version". Now those versions are not equivalent to XMLBeans release versions but if you compare the version numbers in jars generated with different versions of XMLBeans, you will quickly see which jars are compatible and which aren't (again, this is pretty much like Java's class version number). Hope this helps, Radu On Mon, 2008-03-17 at 13:59 -0400, Jim the Standing Bear wrote: > Hello, > > For the past week I have been struggling with importing a pre-compiled > schema beans where xmlbean would fail to see the schema in the jar > included in the classpath and kept generating its own version. > > Finally we made the discovery that the pre-compiled schema beans jar > that I was trying to import was compiled using xmlbeans 2.3.0, but we > are using v2.2.0. So I guess they are not backwards compatible? > > If someone throws me a jar and says "here, use this", is there a way > for me to tell which version of xmlbeans it used to compile? Thanks. > > -- Jim > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > Notice: This email message, together with any attachments, may contain information of BEA Systems, Inc., its subsidiaries and affiliated entities, that may be confidential, proprietary, copyrighted and/or legally privileged, and is intended solely for the use of the individual or entity named in this message. If you are not the intended recipient, and have received this message in error, please immediately return this by email and then delete it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]