users@jaxb.java.net

Re: not display an attribute

From: Guilhem Legal <legal.g_at_hotmail.fr>
Date: Mon, 12 Nov 2007 08:40:24 -0800 (PST)

Thanks that is what i was looking for.


Aleksei Valikov wrote:
>
> Hi.
>
>> I would know if it possible to generate xml and to not display some
>> choosen
>> attribute.
>>
>> for example : a instance of class Apple with id=001, name='golden'
>> color='yellow'
>>
>> i want that my xml looks like :
>>
>> <Apple>
>> <name>golden</name>
>> <color>yellow</color>
>> </Apple>
>>
>> I know that if i want to unmarshall it i will lost the value of id.
>>
>> it this possible?
>
>
> Not sure that this is what you want, but try making your id property
> @XmlTransient.
>
> 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
>
>
>

-- 
View this message in context: http://www.nabble.com/not-display-an-attribute-tf4789819.html#a13709028
Sent from the java.net - jaxb users mailing list archive at Nabble.com.