It bothered me for several days. I just need to find out which missing nodes in the second xml are compared. I tried xmlunit, but it really didn’t help me find the missing node, as it compares line by line. two xml samples: xml1:
<test testcase="101"> <value="1"> <value="2"> <value="3"> </test>
xml2:
<test testcase="101"> <value="3"> <value="2"> </test>
Note that value = 3 is actually there, in the second copy, it just goes to the first node, but still I believe that it is not lost. how to find the missing node value = "1"?
source share