commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From denis queffeulou <denis.queffeu...@wokup.com>
Subject betwixt: manage list
Date Tue, 04 Apr 2006 14:38:52 GMT
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
View raw message