Hussein Shafie wrote:
> Paul Moloney wrote:
>> Someone noted that when you save an XML file in XMLMind, the attributes
>> of an element are resorted (in alphabetical order). For example:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <element>
>>    <element second="second" first="first" />
>> </element>
>>
>> is changed to:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <element>
>>  <element first="first" second="second" />
>> </element>
>>
>> Is there any setting to prevent this?
>>
> 
> No there is no such setting and such setting cannot be implemented.
> 
> Internally attributes are stored in (small and efficient) hash table.
> Therefore, once an XML file has been loaded in XMLmind XML Editor, the
> ordering information of attributes is totally lost.

The XML spec. is pretty specific that attributes are not ordered and any 
XML processor (including XXE) is at liberty to swap them around.

I find it annoying occasionally, but if XXE doesn't re-order them some 
other application will!

Philip

Reply via email to