Hi,

I have query regarding Castor XML mapping.

I have a set of predefined java objects and I have an XML which I want to
map to these java objects.

I came up with the mapping file and everything works great apart from the
custom field handlers. The field handlers only get invoked if there is a
corresponding XML element. But what if I want to default a value if the XML
does not have an element?

Please help me find a solution for this problem. I am sure you might have
this feature, but I am not able to achieve this.

Appreciate your help

Thanks & Regards,

Pavan

Reply via email to