users@jaxb.java.net

Re: unmarshalling ignores element-attribute 'xml'

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Wed, 18 Mar 2009 15:17:12 +0100

On Wed, Mar 18, 2009 at 2:48 PM, korsdal <nabble_at_chicken-flu.de> wrote:

>
>
> ---
> One possibility would be the implementation of an xjc plugin that iterates
> through the classes while they are still com.sun.codemodel objects and adds
> the annotations to all "lang" String fields. That would be fairly easy to
> write.
> ---
>
> which annotation?
>

The ones before "lang":

    @XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace")
    @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
    @XmlSchemaType(name = "language")
    protected String lang;

From xjc-ing the schema I sent you.
-W

>
>
> thanks for your effort so far.
>
> tim
>
> --
> View this message in context:
> http://www.nabble.com/unmarshalling-ignores-element-attribute-%27xml%27-tp22558466p22579157.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>