Hello Xinjun If the element is an "attribute", you can use its attribute "use" which can take values like "optional|required"
For other elements, you can use the attribute "minOccurs" and set it to value "0" to inform the parser/marshalling-framework that this element is optional. Hope that clarifies. ~Sandeep PS: In fact I am also new to castor, but learning it furiously for some immediate project need:-) On 1/12/07, Xinjun Chen <[EMAIL PROTECTED]> wrote:
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
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

