JAXB and property ordering
I want the serialized XML output from my Java class to honor the ordering of the properties in the Java class. It seems that JAXB orders alphabetically. I can override this by using @XmlType with propOrder and specifying ALL of the properties, but I have a class with many properties and these are not yet finalized. I read that specifying an empty propOrder would do it but it don't. My example class: package test; import javax.xml.bind.annotation.XmlElement; import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.XmlType; @XmlRootElement //@XmlType(propOrder={"company"