Question

I'm loading an external XML similar to this:

<list>
    <item>test</item>
    <item>test</item>
    <item>test</item>
    <summary>3</summary>
</list>

How can I annotate a private List<String> items; field so that the Simple framework deserializes the three item tags but not the summary tag?

Was it helpful?

Solution

This worked:

@ElementList(inline = true, name = "item")
private List<String> items;
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top