How to avoid serializing zero values with Simple Xml
- by Bram Vandenbussche
I'm trying to serialise an object using simple xml (http://simple.sourceforge.net/). The object setup is pretty simple:
@Root(name = "order_history")
public class OrderHistory {
@Element(name = "id", required = false)
public int ID;
@Element(name = "id_order_state")
public int StateID;
@Element(name = "id_order")
public…