There should be a way to do this (both via code an an annotation).
Description
Given:
class C {
List<String> list;
}
when serializing, one gets:
<C>
<list>
<string>foo</string>
<string>bar</string>
</list>
</C>
One can use an implicit collection to alias the item type, but there is no way to keep the collection explicit yet still alias the item type, i.e.:
<C>
<list>
<name>foo</name>
<name>bar</name>
</list>
</C>
There should be a way to do this (both via code an an annotation).