Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Save XML order attributes
Save XML order attributes [message #650030] Fri, 21 January 2011 13:58 Go to next message
Neclipse is currently offline NeclipseFriend
Messages: 2
Registered: January 2011
Junior Member
Hi,

My xml file contains attributes classified in order like this:
<article graphicalID="5" sourceTransition="//@transition.3" name="myName">

But when i modified xml and save it with the editor, all attributes of the file xml are ordered alphabetically:
<article graphicalID="5" name="myName" sourceTransition="//@transition.3" >

Which option should I change to keep the original order?

Thanks.

[Updated on: Fri, 21 January 2011 14:02]

Report message to a moderator

Re: Save XML order attributes [message #650114 is a reply to message #650030] Fri, 21 January 2011 19:01 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
EMF will order them according to their declaration order in their
EClass. DOM will generally put them in alphabetical older. In neither
case do you have any significant control. Attribute order is
meaningless anyway, so it's not a semantic problem.


Neclipse wrote:
> Hi,
>
> My xml file contains attributes classified in order like this:
> <article graphicalID="5" sourceTransition="//@transition.3"
> name="myName">
>
> But when i modified xml and save it with the editor, all attributes of
> the file xml are ordered alphabetically:
> <article graphicalID="5" name="myName"
> sourceTransition="//@transition.3" >
>
> Which option should I change to resolve this problem?
>
> Thanks.


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:xsd:any support of ##local
Next Topic:Configuring EMF and RAP as Runtime
Goto Forum:
  


Current Time: Thu Apr 25 06:28:17 GMT 2024

Powered by FUDForum. Page generated in 0.03201 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top