commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From __matthewHawthorne <ma...@phreaker.net>
Subject Re: [BETWIXT] question about collections
Date Thu, 30 Oct 2003 20:12:14 GMT
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" <matth@phreaker.net>
> To: "Jakarta Commons Users List" <commons-user@jakarta.apache.org>
> 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: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message