Please add option to diff xml (for xhtml and svg files)
Emasoft opened this issue · comments
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.
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?