Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

*Feature* - Order Attributes of each tag #188

Open
AndyDaSilva52 opened this issue Jun 29, 2024 · 0 comments
Open

*Feature* - Order Attributes of each tag #188

AndyDaSilva52 opened this issue Jun 29, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AndyDaSilva52
Copy link

AndyDaSilva52 commented Jun 29, 2024

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
...

@AndyDaSilva52 AndyDaSilva52 added the enhancement New feature or request label Jun 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant