Skip to content

*Feature* - Order Attributes of each tag #188

@AndyDaSilva52

Description

@AndyDaSilva52

Situation

The need to make comparison of XML using version control easily, not having to worry about the order of attributes, as they are always complained with a definition

Example:

<global-property
		name="env"
                doc:description="environment."
		value="dev"/>

is different of:

<global-property
		name="env"
		value="dev"
                doc:description="environment."/>

Solution

Being able to define a property to define the order of the attributes, for example:

<attributesOrder>doc:description,name</attributesOrder>

To order the attributes and put doc:description, followed by name as the first and second attribute, and the others be ordered alphabetic.

<global-property
                doc:description="environment."
		name="env"
		value="dev"/>

Alternative
An alternative solution is to use tools specialized in XML comparison.

Additional context
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions