我有一个元素中需要 3 个属性的 XML 文件。如何按照我的意愿制作街道、邮编和城市属性的顺序?
<address street="Big Street" zip="2012" city="Austin">
</address>
@XmlType(name="Street)
@XmlRootElement(name = "Street")
public class Street {
@XmlAttribute
private String name;
@XmlAttribute
private String type;
... set and get method
}