I'm not sure why it isn't read correctly without the <addDefaults/> tag.

Why don't you want to use <addDefaults/>?




Yura Ivanov wrote:


Thanks I has tried this and UserList was printed, but when I try to read
objects from xml It doesn't work.
<info primitiveTypes="element">
<element name="users">
<element name="userList">
<element name="user" property="userList">
</element>
</element>
</element>
</info>

but if I add <addDefaults/> tag then all became again work. Collection are
correct read from xml.
<info primitiveTypes="element">
<element name="users">
<element name="userList">
<element name="user" property="userList">
<addDefaults/>
</element>
</element>
</element>
</info>

But I don't want to use this tag. What should I write instead it?


----- Original Message ----- From: "__matthewHawthorne" <[EMAIL PROTECTED]>
To: "Jakarta Commons Users List" <[EMAIL PROTECTED]>
Sent: Thursday, October 30, 2003 7:04 PM
Subject: Re: [BETWIXT] question about collections




I don't fully understand which of your sample files that you're asking
about, but I think I can provide some general betwixt/collection info.

Try this:

<element name="users">
  <element name="user" property="userList"/>
</element>

Does this do what you want?


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



Reply via email to