commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcos Truchado Martín <marcos.truchado.mar...@hp.com>
Subject Re: betwixt: manage list
Date Tue, 04 Apr 2006 14:50:24 GMT
Hi denis, try to add /adder='addRecipient//'/ to your element.//

denis queffeulou escribió:
> Hi all,
>
> I try to use Betwixt 0.7 to parse this XML (generated by betwixt) :
>  <SendRequest>
> ...
>    <recipients>
>      <recipient>09089787767</recipient>
>      <recipient>767576565</recipient>
>    </recipients>
> ...
>  </SendRequest>
>
> the problem is that I get null for each "recipient". I got a bean that 
> contains a list with 2 null recipients.
>
> I'm using the .betwixt :
> <?xml version='1.0' encoding='UTF-8' ?>
> <info primitiveTypes="element">
>    <element name="SendRequest">
> ...
>        <element name="recipients">
>            <element name="recipient" property="recipients" 
> updater="addRecipient"/>
>        </element>
> ...
>    </element>
> </info>
>
> The bean contains the following methods :
>
>    public List getRecipients()
>    public void setRecipients(List recipients)
>    public void addRecipient(String aRecipient)
>
> I don't understand what is the problem since when I'm using 
> addDefaults, the generated XML is the same.
>
> thanks for help
> -- 
> Denis
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message