users@jaxb.java.net

Re: Mixing custom/manual marshalling with JAXB

From: Dmitri Colebatch <dim_at_colebatch.com>
Date: Wed, 12 Jul 2006 13:48:24 +1000

On 7/12/06, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_sun.com> wrote:

> From JAXB implementation point of view, it's hard to come up with an
> XML infoset API that can be used for hand-off to user-defined handler in
> your scheme, even though the idea of "custom marshalling" is certainly
> appealing.

If you do truely want the full infoset, then xmlbeans might be a
better match than jaxb.

> Dmitri's approach makes a stronger assumption (namely you need to have
> classes like "Cat" in his example), but if that works, that's better for
> you wrt performance.

That wasn't my intention - the code should be able to convert into
anything. Obviously if he had classes like Cat then this wouldn't be
an issue (o:

cheers
dim