Save XML order attributes [message #650030] |
Fri, 21 January 2011 13:58 |
Neclipse 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 |
Ed Merks 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/
|
|
|
Powered by
FUDForum. Page generated in 0.03201 seconds