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

Please add option to diff xml (for xhtml and svg files) #391

Open
Emasoft opened this issue Apr 23, 2023 · 1 comment
Open

Please add option to diff xml (for xhtml and svg files) #391

Emasoft opened this issue Apr 23, 2023 · 1 comment

Comments

@Emasoft
Copy link

Emasoft commented Apr 23, 2023

Is your feature request related to a problem? Please describe.
Deepdiff doesn't support direct xml trees comparison and hashing.

Describe the solution you'd like
Add option to diff xml trees (for xhtml and svg files), and to hash compare nodes ignoring the node id (to be able to find duplicate nodes differing only by the id).

Describe alternatives you've considered
An alternative is to use xml2dict to convert xml to json. But using xml2dict is not ideal when working with lots of xml attributes, namespaces and scripts when comparing xhtml and svg files in a web project.

@seperman
Copy link
Owner

seperman commented May 1, 2023

Hi @Emasoft
I have never used the https://github.com/martinblech/xmltodict library. Do you recommend against it because it changes the path of the xml elements?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants