The purpose of @XmlTransient is to mark a Java property so that it is
omitted from the XML representation. You can simply omit the element with
anyType from the schema.
If you want to have a property in the Java object in your application that
is not in the XML element, you could subclass the JAXB generated class,
adding any properties you need.
-W
On Mon, Feb 23, 2009 at 9:36 PM, Mahesh Nayak <mahesh.nayak_at_gmail.com>wrote:
> Hello All:
>
> My Java classes are derived from a XSD file. In the XSD file, i have an
> element of type "anyType". This gets translated to a Class member of type
> "Object". Is there any way, that I can convey JAXB, through XSD, that this
> object needs to be annotated with @XmlTransient?
>
> Your answer would help me in designing and development of my application.
>
> Regards,
> Mahesh
>
>
>>
>>
>