I have this class
@XStreamAlias("myConfig")
public class MyConfig {
... // other properties
// What do I put here?
private List<String> includes;
}
And I want this output:
<myConfig>
...
<includes>
<includes>foo</include>
<includes>bar</include>
</includes>
</myConfig>
This doesn't work, because the element is lost:
@XStreamImplicit(itemFieldName = "include") // Loses <includes> element
private List<String> includes;