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

->

http://stackoverflow.com/questions/574724/rexml-preserve-attributes-order

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:

https://www.google.de/search?q=rexml+attribute+ordering
http://stackoverflow.com/questions/574724/rexml-preserve-attributes-order

Thanks! That did the trick.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs