Search code examples
javaxmlxmlunit

XMLUnit - Ignoring 'id' attribute in comparison


I am currently working with XMLUnit and I am wondering if there is way to configure it to ignore only the id attribute of the tags I want to compare.

Thanks in advance for your help.


Solution

  • I am gonna try to implement my own DifferenceListener to handle this need (see this post). Gonna post the result soon. It seems to work, gonna post the implementation tomorrow.