users@jaxb.java.net

Re: root element collision on the JAXBContext

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 08 Aug 2003 12:02:55 -0700

> Is it possible to use the two following schemas without causing a root
> element collision on the JAXBContext? Each schema is compiled into its own
> package, but is used by the same JAXBContext.

No. You have to create two contexts. You can write your own
ContentHandler that looks at the root element and dispatches the input
to the right unmarshaller, though.

regards,
--
Kohsuke Kawaguchi                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net