I am still looking (desperately) for a solution for this
issue.
If anyone has any idea how we can get around this issue,
please let me know.
Thanks,
Dinesh
From: Pandey, Dinesh
Sent: Tuesday, July 26, 2005 10:56 AM
To: '[email protected]'
Subject: Avoiding setting empty integer elements to zero
Hi,
I am using Castor
for unmarshalling my xml file and am facing an issue right
now.
I have few fields in
my xml that are integer type and my Castor generated objects have type Integer
for them. When I unmarshal, I get all the empty elements in the xml as Integer
objects with 0 value, while I would like null Integer
objects.
Same is the case
with empty String elements, I want them to be null instead of empty String
("").
Can someone please
help me with this?
Thanks,
Dinesh
CONFIDENTIALITY NOTICE: This electronic message transmission is intended only for the person or the entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. If you have received this transmission, but are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this information is strictly prohibited. If you have received this e-mail in error, please contact SHPS at [EMAIL PROTECTED] and destroy the original message and all copies.

