commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rik Scarborough <rik...@gmail.com>
Subject Re: [betwixt] Additional element on writing collections
Date Tue, 03 Aug 2010 23:15:01 GMT
Found there is a flag for this.
 XMLIntrospector.setWrapCollectionsInElement(false).

~Rik

On Tue, Aug 3, 2010 at 1:11 PM, Rik Scarborough <riksca@gmail.com> wrote:

> If I have a bean that contains an array of another bean, when I write out
> the XML, there is an additional element name added.
>
>
> For instance.
>
> public class ObjectTypes {
>      private ObjectType[] object
>      ....
> }
>
> The writer will output
>
> <ObjectTypes>
>      <Object>
>          <Object>
>           .....
>
>
> I don't seem to see a way to fix this.
>
> ~Rik
>

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