How to custom the order of the attributes when using JAXB?
Hi All,
I have a XML file segement:
<Person age=20 level="High" name="fan">
<Attribute>
<Attribute/>
</Person>
I create the scheme file for the xml file and use JAXB parsing the XML file, and update the file(add a new filed, nickName="hansen").
I hope the output file is:
<Person name="fan" nickName="hansen" age=20 level="High" >
<Attribute>
<Attribute/>
</Person>
From the two segments, the name fileds is in front.
So how to custom the order of the fileds when using JAXB?
Thanks in advance!