Comments on: Xml Serialization in Java using Simple Knight of the Code Thu, 16 Mar 2017 20:38:03 +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;