users@jaxb.java.net

Re: Handeling Extensible Schemas with JAXB

From: Kenny MacLeod <kennym_at_kizoom.com>
Date: Thu, 15 Feb 2007 09:49:03 +0000

without knowing what your schema looks like, it's hard to advise you,
I'd say.

can you post the fragment which represents the sample XML you posted?


Andrew Hughes wrote:
> Hi All,
>
> The domain I am working with , uses schema's that are meant to be
> extended. Consequently if the extensions do not have bindings, then "to
> my knowledge" JAXB does not provide me with a usable solution?
>
> For instance if I can create valid xml from my XSD:
>
> <Business>
> <Name official="The Code Factory Pty. Ltd."/>
> </Business>
>
> But someone decides to extent the XML so it now contains a new element
> called "<NameAlias>"
>
> So its now:
>
> <Business>
> <Name official="The Code Factory Pty. Ltd.">
> <NameAlias alias="Code inc. Pty. Ltd./>
> <NameAlias alias="Code-Factory Pty. Ltd./>
> </Name>
> </Business>
>
>
> In an ideal world this should be rejected told to please come back with
> something that meets the specification... this is not reality however.
>
> Most people like XML because they can customize it... they can add their
> own data... and they can also ignore data.... Another problem is schema
> versioning... some people change their schema's.. and some don't even
> place version information to begin with.
>
>
> How can JAXB handle these aspects of extensibility?
>
>
>
> Thanks a heap for JAXB2!!!!!!!!! Verrrrry cool stuff!!!
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>