Xinjun,
have a llok at
http://castor.org/xml-mapping.html#3.4-The-%3Cfield%3E-element
which explains that on a field mapping you can specify whether a field is
required (or not) by setting the 'required' attribute according to your needs.
Re: the null elements, can you please give me an example where this happens,
and where in your view should not happen ?
Regards
Werner
________________________________
From: Xinjun Chen [mailto:[EMAIL PROTECTED]
Sent: Freitag, 12. Jänner 2007 07:36
To: [email protected]
Subject: [castor-user] Castor mapping file to specify optional elements
Hi,
I am new to Castor. Could anyone tell me if there is any way to specify
certain xml elements as optional? And in turn stop Castor marshalling framework
from generating null elements.
Regards,
Xinjun