Hi,
When I run my test in Katalon, it is throwing me error because of this line:
.withNodeFilter(node → !node.getNodeName().equals(“someName”)
Could somebody point out why this is not working or how can replace this line for another that help me ignore a node from an xml?
my complete code is:
import org.junit.Assert
Diff myDiff = DiffBuilder.compare(Input.fromFile(myxml1.xml))
.withTest(Input.fromFile(myxml2.xml))
.checkForSimilar()
.ignoreWhitespace()
.normalizeWhitespace()
.withNodeFilter(node → !node.getNodeName().equals(“someName”)
.build();
Assert.assertFalse(myDiff.hasDifferences());