Try removing the container attribute, i.e. don't specify false and don't
specify true, just remove it all together.

--Keith

Vadim Solonovich wrote:
> 
> Hi !
> 
> This is second try.
> 
>  My question is about the problem described in
> http://www.mail-archive.com/[email protected]/msg08916.html
> and about marshalling collections in latest Castor after fixing bug 1006.
> 
>  Assuming I have an object like this
> 
>  class List {
> 
>      java.util.Collection _liList ;
> 
>      java.util.Collection getLi() {
>          return this._liList ;
>      }
>      void  setLi ( java.util.Collection vLi ) {
>          this._liList = vLi;
>      }
>      void  addLi ( java.lang.String vLi ) {
>          this._liList.add(vLi);
>      }
>  }
> 
>  What  I need is something like this:
> 
>  <list>
>      <li> text </li>
>      <li> text </li>
>      ...
>  </list>
> 
>  My mapping.xml looks like this :
> 
>  <class name="List">
>    <map-to xml="list" />
>  <field name="li" collection="collection" type="string" container="false" 
>required="false" direct="false" lazy="false" transient="false" >
>    <bind-xml name="li" node="element" reference="false" transient="false" />
>    </field>
>    </class>
> 
>  What I get after marshalling List object is :
> 
>  <list>
>      <li>
>          <string>text</string>
>          <string>text</string>
>          ...
>      </li>
>  </list>
> 
>  which  is not what I want.
>  Setting <field  ... container='true'  ... > produce:
> 
>   <list>texttexttext</list>
> 
>  What should I do now to get what i want ?
> 
>  Thanks in advance,
> 
>  Vadim Solonovich,
>  mailto:[EMAIL PROTECTED],
>  Software Development Dpt.,
>  Park.RU, Ltd.
>  http://www.park.ru, http://garant.park.ru
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to