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

Output identifying attributes, when available #71

Open
UnitedMarsupials opened this issue Dec 8, 2020 · 0 comments
Open

Output identifying attributes, when available #71

UnitedMarsupials opened this issue Dec 8, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@UnitedMarsupials
Copy link

If invoked with --unique-attributes specified, the tool should report the given attributes, when listing differences -- to make it easier to locate the reported differences.

(Actual line-numbers would be good too, but that may not be available from lxml.)

For example, some of our ant-files have hundreds of targets -- with unique names. So I run xmldiff --ratio-mode accurate -p --unique-attributes=name ...

Unfortunately, the only guidance I'm getting in the output is differing target's number: [update-attribute, /project/target[165] ...

Counting up to 165 is rather impractical, is not it? It ought to list the uniquely-identifying attributes instead of -- or in addition to -- the number.

@regebro regebro added the enhancement New feature or request label Jan 11, 2023
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

2 participants