I am new to Castor and its mapping capabilities.   I  am having a problem
getting my XML wrappers to look the way I want it 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 in the mapping file?
Thanks in advance. 
-- 
View this message in context: 
http://www.nabble.com/Help-needed-with-Mapping-and-XML-Binding-tf3340401.html#a9290361
Sent from the Castor - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email

Reply via email to