Comments on: Xml Serialization in Java using Simple http://www.rhyous.com/2012/05/24/xml-serialization-in-java-using-simple/ Knight of the Code Tue, 18 Apr 2017 01:08:42 +0000 hourly 1 By: lesto http://www.rhyous.com/2012/05/24/xml-serialization-in-java-using-simple/#comment-94760 Mon, 27 Oct 2014 16:55:40 +0000 http://www.rhyous.com/?p=5048#comment-94760 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:

@Root
public class OrderManager {
@ElementList
private final List orders;

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

}

]]>