[Simple-support] XML attribute empty value
Brought to you by:
niallg
|
From: Tomáš P. <tom...@at...> - 2013-12-12 13:10:02
|
I have this in my POJO @Attribute(required = false, empty = "") protected Date birthDate; I want to generate birthDate="" to the XML if date is null, but it doesn't work. But this: @Attribute(required = false, empty = "empty") protected Date birthDate; will be generate birthDate="empty" I think that "" should be also possible to use as empty value Why not? I checked that you use "" as default value , maybe will be better use some other value and allou to use "" as custom variant. I think that default value mean hide the attribute. -- Ing. Tomáš Procházka |