Hi,

Why don't you use the nillable attribute on the element/attribute definition in 
question ? That should give you what you are looking for.

Werner 

> -----Original Message-----
> From: Elango [mailto:[EMAIL PROTECTED] 
> Sent: Dienstag, 16. Jänner 2007 13:34
> To: [email protected]
> Subject: [castor-user] How to enable xsi:nil attribute using castor?
> 
> 
> Hi All,
> 
> How to enable xsi:nil attribute of an XML element during 
> marshalling using Castor? I don't see any documentation that 
> explains how to set xsi:nil attribute of an XML element to "true".
> 
> Steps that I follow to generate XML using Castor:
> 
> 1. Create object from Castor generated class.
> 2. Set the values for the elements.
> 3. Call Marshaller.marshall().
> 
> Please help me.
> 
> Regards,
> Elango
> --
> View this message in context: 
> http://www.nabble.com/How-to-enable-xsi%3Anil-attribute-using-
> castor--tf3020679.html#a8389374
> Sent from the Castor - User mailing list archive at Nabble.com.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>     http://xircles.codehaus.org/manage_email
> 

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to