users@jaxb.java.net

Re: Multiple version handling

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 11 Feb 2005 08:33:47 -0800

Vallamshettla, Anand wrote:
>> What do you mean by "structure of the document"? If schemas needs to be
>> revisioned, something must be changing.
>
> Revision is only in minor or micro version. What I mean by structure here
> is that elements from one complex will not be moved to other complex element etc.
>
> But the only change would be adding new elements or making exiting
> elements optional. If it is just an additional element, then it would
> mean adding another field. I guess this would become complex with Name
> spaces are taken in to consideration as the name spaces are hard coded
> in to the generated classes. J


OK, if I understand you correctly, the changes will be done carefully so
as not to break existing documents that conform to the old revision of
the schema, except that it uses a totally different namespace?

If so, if you compile the latest schema, and hack up at the runtime to
"change" the namespace of incoming documents, would that unmarshal into
new classes just fine?



(P.S. Somehow the formatting of your e-mail is messed up. Just FYI)
-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com