users@jaxb.java.net

RE: Re: any

From: Lulseged Zerfu <lulseged.zerfu_at_ericsson.com>
Date: Thu, 12 Nov 2009 16:21:27 +0100

Thanks

I have already compiled and get @XmlAnyElement, @XmlAnyAttribute.

But when unmarshalling a document, how do I access this elements?

Lulseged

-----Original Message-----
From: aleksei.valikov_at_gmail.com [mailto:aleksei.valikov_at_gmail.com] On
Behalf Of Aleksei Valikov
Sent: den 12 november 2009 15:55
To: users_at_jaxb.dev.java.net
Subject: Re: any

Hi,

> I wonder what JAXB is doing with xs:anyAttribute and xs:any? (red
text).
>
> It is used for extensibility. May include one or more elements from
> any other namespaces.
>
> If JAXB handles extensible types, are there any examples some where?

Yes, these cases are supported. You'll get @XmlAnyElement,
@XmlAnyAttribute or other things depending on the schema.
Try compiling.

Bye.
/lexi

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net