Given a List
of POJO's, if I serialize them with XStream I get:
<list>
<pojo>
<a>a</a>
<b>b</b>
</pojo>
<pojo>
<a>a</a>
<b>b</b>
</pojo>
</list>
How can I do the serialization and omit the <list> </list>
entries? I've used addImplicitCollection
for a similar purpose but that was to omit the collection instance variable name when the collection was a member of a class being serialized.
Note: This question appears similar but not exactly relevant (I think).