deepdiff icon indicating copy to clipboard operation
deepdiff copied to clipboard

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

Open Emasoft opened this issue 2 years ago • 1 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.

Emasoft avatar Apr 23 '23 04:04 Emasoft

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?

seperman avatar May 01 '23 06:05 seperman