I am new to Castor and its mapping capabilities.  I am having a problem
getting my XML wrappers to look the way I want to when using the
xml-bind location attribute on a attribute node.  Basically, what I have
in my object is a List of strings (Names).

That I want represented in the XML as:

<OtherNames>
        <OtherName Name="Bob"/>
        <OtherName Name="Steve"/>
        <OtherName Name="Chris"/>
<OtherNames>

What I am gettings is:
<OtherNames>
        <OtherName Name="Bob Steve Chris"/>
</OtherNames>


My mapping looks something like:
<field name="OtherNames" type="java.lang.String" collection="arraylist">
        <bind-xml node="attribute" name="Name"
location="OtherNames/OtherName"/>
</field>

Is there a way to do this without writing code to handle it?  I would
like to not have to write any FieldHandlers to do this type of stuff.
Thanks in advance.

Reply via email to