users@jaxb.java.net

support for two versions of a schema

From: Raif S. Naffah <dev_java_at_naffah-raif.name>
Date: Tue, 6 Jan 2009 20:44:22 +1100

hello there,

i have two versions of a W3C Schema, say version 1.1 and a newer 1.2 version
which includes more types. i was wandering if it's possible, using the xjc
to generate binding classes (and ObjectFactory) to support xml files written
according to both schemas (without re-writing the files); e.g. use the same
classes to marshal file1:

  <foo xmlns="http://www.foo.org/schemas/Foo/1.1"...>...</foo>

and file2:

  <foo xmlns="http://www.foo.org/schemas/Foo/1.2"...>...</foo>


TIA + cheers;
rsn