I have also tried to do a nested class mapping, but the results are still not
correct.
Mapping:
<field name="otherNames" type="java.lang.String" collection="arraylist">
<bind-xml name="OtherName" location="OtherNames">
<class name="java.lang.String">
<field name="otherNames" type="java.lang.String"
get-method="toString">
<bind-xml name="Name" node="attribute"/>
</field>
</class>
</bind-xml>
</field>
Results:
<OtherNames>
<OtherName Name="Tom">Tom</OtherName>
<OtherName Name="Steve">Steve</OtherName>
</OtherNames>
This is closer to what I am looking for, but the value of the element should
be empty, not repeating the value of the attribute.
--
View this message in context:
http://www.nabble.com/Help-needed-with-Mapping-and-XML-Binding-tf3340401.html#a9314256
Sent from the Castor - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email