Comments on: Xml Serialization in Java using Simple Knight of the Code Fri, 19 May 2017 14:51:05 +0000 hourly 1 By: lesto Mon, 27 Oct 2014 16:55:40 +0000 null element are valid, you just have to specify (required=false), like "@Element(required=false)"

another little trick is that you can use non-void constructor just specifying with variable they use:

public class OrderManager {
private final List orders;

public OrderManager(@ElementList(name="orders") List orders) {
this.orders = orders;