Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to custom the order of the attributes when using JAXB?

hansenfanOct 21 2009 — edited Jun 27 2011
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!

Comments

1573507

While I tried to start elasticsearch, it failed as below

c:\Tools\elasticsearch\elasticsearch-5.3.0\bin>elasticsearch.bat

Error: missing `server' JVM at `C:\Program Files (x86)\Java\jre1.8.0_77\bin\server\jvm.dll'.

Please install or use the JRE or JDK that contains these missing components.

I do have  jvm.dll in C:\Program Files (x86)\Java\jre1.8.0_77\bin\client\jvm.dll.

Please suggest me to overcome this without using admin privilege in my box.

Raghu Ariga

Excellent Article

Scott Yao

This article is very informative!

Logan Paul

That article is literally awesome. Just learn lot of information!

emawalker33

This article is really awesome. Thanks for sharing.

GlamorousToffee

Excellent Artical ! Thank you very much for your hard work My KFC Experience

Excellent Article! Thanks.

1 - 7
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 25 2011
Added on Oct 21 2009
4 comments
12,125 views