Hi Joni,

yes, this is possible using a mapping file with Castor, and more
specifically using the location attribute on the field mapping for the
property 'b', similar to

<field name="b" type="string">
   <bind-xml name="b" node="attribute" location="a" />
</field>

I hope this helps.

Regards
Werner Guttmann

Joni Lahtinen wrote:
> Hi
> 
> Is this:
> 
> public class Root{ private String a; private String b; } => <root><a
> b="bar">foo</a>
> 
> possible to do somehow?
> 


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

    http://xircles.codehaus.org/manage_email


Reply via email to