When i ran XMLUnit.compareXML(control,test node). Giving me 3 differences. and source document last child is being compared with testnode last element. But it should not happen as the element itslef not present(last param), It should return me only 1 difference(Currently it is comparing against each element/attribute).
How to skip differences of childs if parent is not found in the above case.
Please let me know your valuable suggestions
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
When i ran XMLUnit.compareXML(control,test node). Giving me 3 differences. and source document last child is being compared with testnode last element. But it should not happen as the element itslef not present(last param), It should return me only 1 difference(Currently it is comparing against each element/attribute).
How to skip differences of childs if parent is not found in the above case.
Please let me know your valuable suggestions
I think you want to set compareUnmatched to false, see http://xmlunit.sourceforge.net/userguide/html/ar01s03.html#Comparison%20of%20Unmatched%20Elements