Hello
I need to marshall the entries in a map as if it where a bean, that is, with this mapping:
<class name="data.UserValue">
<field name="attrValues" collection="map" >
<bind-xml>
<class name="org.exolab.castor.mapping.MapItem">
<field name="key" type="java.lang.String"/>
<field name="value" type="java.lang.String"/>
</class>
</bind-xml>
</field> </class>
I get something like:
<userValue>
<attrValues>
<key>name</key>
<value>My name</value>
</attrValues>
<attrValues>
<key>surname</key>
<value>My surname</value>
</attrValues>
</userValue>But what I want is
<userValue>
<name>My name</name>
<surname>My surname</surname>
</userValue>I've tried defining my own handlers for attrValues or key/value, but I can't figure out how to do it, or if it is possible.
Any help will be appreciated, Francisco
----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user
