users@jaxb.java.net

Re: Unmarshalling ignores value of anyType element

From: fcamous <fabrice.camous_at_dit.ie>
Date: Wed, 2 Dec 2009 07:49:59 -0800 (PST)

Thanks Wolfgang,

I used the solution below and I could access the content of the tag.

Cheers,
Fabrice



Wolfgang Laun-2 wrote:
>
>
> The second case uses this schema definition:
>
> <xs:complexType name="MyTypeThree">
> <xs:complexContent mixed="1">
> <xs:extension base="xs:anyType"/>
> </xs:complexContent>
> </xs:complexType>
>
> Class MyTypeThree now has List content, in order to
> collect text content chunks and child elements, as they appear
> in the element. Full blown processing after unmarshalling would
> have to instanceof-test the list elements, and process accordingly.
> For simple text content, you can expect a String object, which
> can also be put during marshalling.
>
>
>

-- 
View this message in context: http://old.nabble.com/Unmarshalling-ignores-value-of-anyType-element-tp26595595p26611136.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.