Yes, have a look at http://castor.org/xml-fieldhandlers.html
for instructions on doing so. And when starting with an XML schema, you can use the binding file to specify a custom field handler for any XML schema artefact. Regards Werner Srinivasan, Pady wrote: > But doesn't a FieldHandler handle only for one element ? I mean, can I > set a FieldHandler so that a complete element will be handled by a > Handler..like... > > <Root> > <MyProperty> > <Name>..</Name> > <Value>...</Value> > </MyProperty> > <MyProperty> > <Name>..</Name> > <Value>...</Value> > </MyProperty> > </Root> > > So I would like the Handler get a reference to the Root node and then > all child elements will be marshalled/unmarshalled by the handler rather > than the castor engine ? So in this case, there would be no "Mproperty" > class - rather the handler will build a java.util.Properties when it > sees a collection of "MyProperty" nodes. Is this possible ? > > > Thanks > > -- pady > FESCo DB System > 508-787-7221 > > > Email Confidentiality Notice: The information in this email and > subsequent attachments may contain confidential information that is > intended solely for the attention and use of the named addressee(s). > This message or any part thereof must not be disclosed, copied, > distributed or retained by any person without authorization from > Fidelity Investments. > > > > > -----Original Message----- > From: Werner Guttmann [mailto:[EMAIL PROTECTED] > Sent: Friday, February 16, 2007 9:04 AM > To: [email protected] > Subject: Re: [castor-user] Marshal/unmarshal java.util.Properties > > > Not sure, but you could try to use a custom FieldHandler to achieve that > conversion, but out of the box, this is not supported. > > Regards > Werner > > Srinivasan, Pady wrote: >> I want to define a Name/Value pair as a complexType and then be able > to >> unmarshal this to java.util.Properties. Is this possible ? Any ideas >> appreciated. >> >> >> >> Thanks >> >> -- pady >> FESCo DB System >> 508-787-7221 >> >> >> *Email Confidentiality Notice:*/ The information in this email and >> subsequent attachments may contain confidential information that is >> intended solely for the attention and use of the named addressee(s). >> This message or any part thereof must not be disclosed, copied, >> distributed or retained by any person without authorization from >> Fidelity Investments./ >> >> >> > > > --------------------------------------------------------------------- > 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 > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

