Hi Paul, Paul B. Anderson wrote:
> I'm still struggling. Where can I find ParameterizedConverterTest? https://fisheye.codehaus.org/browse/xstream/trunk/xstream/src/test/com/thoughtworks/acceptance/annotations/ParametrizedConverterTest.java?r=2131 > One additional aspect: I have three instances of the ArrayList<String> > in my object, each with different inner element names. Register a local converter for each instance. Also have a look at the parallel thread with the CollectionConverter and @XStreamConverter annotation. Cheers, Jörg > > On 2/24/14 1:46 PM, Jörg Schaible wrote: >> Hi Paul, >> >> Paul B. Anderson wrote: >> >>> I'm trying to handle an ArrayList<String> to achieve XML like the >>> following: >>> >>> <entries> >>> <entry>Alpha</entry> >>> <entry>Bravo</entry> >>> <entry>Charlie</entry> >>> </entries> >>> >>> The examples Ive seen let me name the outer <entries> element or >>> eliminate the outer element and name the inner elements. Is there a way >>> to >>> achieve both? I'm using annotations but I'm not tied to them. >> Register a local converter of type NamedCollectionConverter for the >> field. This is also possible with annotations, but a bit tedious. You may >> have a look at the ParameterizedConverterTest for an example. >> >> Cheers, >> Jörg >> >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email