Hello All!

I have a little question about proccing collections with betwixt. How could
I write UserCollection.betwixt file for right output and input without
<addDefaults/> teg.
I have a simple class User and UserCollection. Here they are
public class User {
    String name;
    public String getName() {
        return name;
    }

    public void setName(String pName) {
        name= pName;
    }
}

public class UserCollection {
    List userList = new ArrayList();
    public void addUser(User pAddedUser) {
        userList.add(pAddedUser);
    }

    public List getUserList() {
        return userList;
    }
}

and *.betwixt files
<?xml version="1.0" encoding="UTF-8"?>
<info primitiveTypes="element">
<element name="user">
<element name="name22" property="name"/>
</element>
</info>

Whis is wrong with this file?

<?xml version="1.0" encoding="UTF-8"?>
<info primitiveTypes="element">
<element name="users" >
<element name="userdd" property="user"></element>
<addDefaults/>
</element>
</info>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to