JAXB and property ordering
It’s possible using: @XmlType (propOrder={“prop1″,”prop2″,…”propN”}) Just uncomment the code like this: //@XmlType(propOrder={“company”, “scheme”, “agreementNumber”}) This is the correct usage.
It’s possible using: @XmlType (propOrder={“prop1″,”prop2″,…”propN”}) Just uncomment the code like this: //@XmlType(propOrder={“company”, “scheme”, “agreementNumber”}) This is the correct usage.
Update And here’s a quick adaptation to handle your Property class. First, a List<T> subclass that implements IXmlSerializable: public interface IHasElementName { string ElementName { get; set; } } public class XmlNamedElementList<T> : List<T>, IXmlSerializable where T : IHasXmlElementName { // https://msdn.microsoft.com/en-us/library/System.Xml.Serialization.XmlSerializer%28v=vs.110%29.aspx // Any serializer created with the “XmlSerializer(typeof(T), rootAttribute)” must be cached // to … Read more