2

I want XMLUnit to ignore order when comparing. Is there a way to control that? Eg:

parameter1
value1


parameter2 
value 2

if compared with

parameter2
value2

parameter1
value1

should not return any differences.

I am using XMLUnit 2 with Java. I found a couple of similar questions here but none had a definite solution. Any help is appreciated. Thank you.

pas
  • 109
  • 1
  • 13
  • Hope this link can help you [Ignore element order](https://stackoverflow.com/questions/16540318/compare-two-xml-strings-ignoring-element-order) – Subash J Jan 26 '18 at 15:19
  • I tried that solution. It works perfect for the examples given there (small simple xmls) but not big complicated files which I am working on. – pas Jan 26 '18 at 18:12
  • Would you mind showing the sample code / data that you tried and not working? – Rao Feb 14 '18 at 03:51
  • Did you ever find anything? – GC_ Sep 11 '20 at 02:52

0 Answers0