I am able to compare 2 xml files using XMLUNIT 2.5 DiffBuilder. I want to ignore certain elements using withNodeFilter. But the withNodeFilter accepts only 1 element. Is there a way to ignore more that one element for comparison.
DiffBuilder.compare(DocB)
.withTest(docA)
.withNodeFilter(node -> !node.getNodeName().equals("metadata")) // need to include more element tags to ignore
.build();