I have a case in my Java EE application like I need to compare two large auto-generated XMLs. I just need to check if both the XMLs are equal (tags and values).
I tried using XMLUnit
, but the thing is like it returns false
even if there are spaces between tags(these XMLs are auto generated right!). Is there any effective way to do this or to write down our own logic ?