users@jaxb.java.net

Re: jaxb abstract mixed serializeBody problem

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Wed, 21 Jul 2004 17:26:47 -0700

Looking at the schema, it only seems to allow text, no element. So I'm
not sure if you are allowed to put "child concrete element" there.

Or am I missing something? Is this type derived by some other types? If
so, can I see that as well?

> <xsd:complexType name="base" abstract="true"
> mixed="true">
> <xsd:attribute name="att1" type="t_2" use="optional"/>
> <xsd:attribute name="att2" type="t_1" use="optional"/>
> </xsd:complexType>
>
> When I use xjc, I get an implementation class called
> with a serializeBody method that only uses
> context.text(). This causes an error when I try and
> add a child concrete element, but it is happy if I add
> text.
>
> Am I using it incorrectly or is this not supported.


regards,
--
Kohsuke Kawaguchi
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