Keemiapiptups
New Member
I am trying to desrialize an xml through simple framework. I have two lists whose types will be known only at runtime. So I used @ElementListUnion.\[code\]Customer.java@ElementListUnion({@ElementList(inline = true,type=Thing.class),@ElementList(inline = true,type=AnotherThing.class)})List<Object> things;@ElementListUnion({@ElementList(inline = true,type=Thing.class),@ElementList(inline = true,type=AnotherThing.class)})List<Object> anotherthings ;\[/code\]But Im getting the following exception \[code\]03-20 19:36:20.534: E/AndroidRuntime(2764): Caused by: org.simpleframework.xml.core.PersistenceException: Duplicate annotation of name 'thing' on @org.simpleframework.xml.ElementListUnion(value=http://stackoverflow.com/questions/15533272/[@org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=true, name=, required=true, type=class com.data.Thing), @org.simpleframework.xml.ElementList(data=false, empty=true, entry=, inline=true, name=, required=true, type=class com.data.AnotherThing)]) on field'things' java.util.List com.data.Customer.things\[/code\]please help.