I have two pieces of XML, a part of which is :
<userActionRequiredCode>0</userActionRequiredCode>
<userActionRequiredCode xsi:nil="1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
These are in different files which I am comparing using XMLUnit.
These are different as you can see, not same, not similar. What options can I set for XMLUnit or the Diff class or anywhere so that I can take this difference into consideration.
Currently this doesn't show up in the list of differences.
Edit : Updated sample.
UPDATE : The original problem wasn't with XMLUnit recognizing the difference. It was a mistake on my part. XMLUnit correctly recognizes the difference. This particular problem, hence is bogus, irreplicable.