Attribute ordering in REXML

Hi all!

We are using REXML to modify XML files in our project, and we experience
that the attributes of all tags are always reordered. For XML files
that are checked into source control, this generates unnecessary noise.

Is there a way to either keep the ordering of the tag attributes intact
or choose to have a predictable ordering like alphanumerical ordering?

All help is appreciated and links are gladly accepted :slight_smile:

On Mon, Dec 3, 2012 at 9:14 AM, Uwe K. [email protected] wrote:

Hi all!

We are using REXML to modify XML files in our project, and we experience that
the attributes of all tags are always reordered. For XML files that are checked
into source control, this generates unnecessary noise.

Is there a way to either keep the ordering of the tag attributes intact or
choose to have a predictable ordering like alphanumerical ordering?

All help is appreciated and links are gladly accepted :slight_smile:

https://www.google.de/search?q=rexml+attribute+ordering

→

Cheers

robert

On 2012-12-03, at 09:39, Robert K. [email protected]
wrote:

On Mon, Dec 3, 2012 at 9:14 AM, Uwe K. [email protected] wrote:

We are using REXML to modify XML files in our project, and we experience that
the attributes of all tags are always reordered. For XML files that are checked
into source control, this generates unnecessary noise.

Is there a way to either keep the ordering of the tag attributes intact or
choose to have a predictable ordering like alphanumerical ordering?

All help is appreciated and links are gladly accepted :slight_smile:

rexml attribute ordering - Google Search
xml - REXML preserve attributes order - Stack Overflow

Thanks! That did the trick.