users@jaxb.java.net

Re: unmarshal/marshal discrepancy with attribute

From: Mike Storey <mike_storey_at_KIZOOM.COM>
Date: Tue, 11 Feb 2003 07:27:03 -0700

On Wed, 8 Jan 2003 12:03:55 -0800, Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM> wrote:

>The bug of RI in this case is its inability to reject this schema. I
>checked it with my current working version and made sure that it reports
>an error.
>
>Now the correct fix to this problem is to add a customization that
>changes the property name.
>
><xs:complexType name="BIND-experimental-system1">
> <xs:simpleContent>
> <xs:extension base="xs:integer">
> <xs:attribute name="value">
> <xs:appinfo><xs:annotation>
> <jaxb:property name="category"/>
> </xs:annotation></xs:appinfo>
> ...
>
>
>regards,
>--
>Kohsuke KAWAGUCHI 408-276-7063 (x17063)
>Sun Microsystems kohsuke.kawaguchi_at_sun.com

Is it possible to customise the property name for the content rather than customising the property name of the "value" attribute?

Cheers

Mike Storey
Lead Developer, Kizoom Ltd