why not just initialize the field to your desired default
value and/or write a field handler to map 'null' value to your desired text
representation
From: Bahl, Rohit [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 02, 2005 3:51 PM
To: [email protected]
Cc: [EMAIL PROTECTED]
Subject: [castor-user] Generating empty tag for a field with NULL value
Hi,
I am trying to map a java class to XML using
Castor
If the value of a mapped java field is
null, then Castor does not generate an empty tag for that field.
It simply ignores that field and generates xml
content for the next non -null field.
Is
there a way to overirde this behaviour?
thanks,
Rohit Bahl
extn 2995

