Clojure hierarchical diff of two xml files

I am trying to use hierarcial diff two small xml files. closes me:

( (clojure.xml/parse "file1.xml") (clojure.xml/parse "file2.xml")) will return before and after, but does not support xml structure (no tag elements), and before and after cannot be easily converted to xml (like with Clojure. xml / emit).

How can I accomplish hierarchical difference of two xml files in clojure?


source to share

2 answers

XMLUnit has stand-alone methods for XML differentiation. You can include the library and just call it from Clojure.



it looks like an extension request in Could you please open a question on the jira page.

even better if it contains a patch (sign the contribution agreement first)



All Articles