i see many help in stackoverflow and a topic here where in it is explained how to ignore the name space comparison in 1.x but how do i ignore namespace compariosn in 2.x ?
i do not see ElementNameQualifier. DifferenceEngine.SetDifferenceListner accepts ComparisonListner and I dont see overrideDifferenceListner in DifferenceEngine.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i see many help in stackoverflow and a topic here where in it is explained how to ignore the name space comparison in 1.x but how do i ignore namespace compariosn in 2.x ?
i do not see ElementNameQualifier. DifferenceEngine.SetDifferenceListner accepts ComparisonListner and I dont see overrideDifferenceListner in DifferenceEngine.
basically i want xmlunit to ignore ns6 and ns2 in below
1.. <ns6: blah="">
2.<ns2:blah></ns2:blah></ns6:>
Last edit: Hari Rao 2018-01-17
my guess is there should be some wrapper class. Thanks in advance for the help
found https://stackoverflow.com/questions/38862681/xmlunit-2-x-compare-2-xmls-fail-because-of-difference-in-namespace-prefix .. Will try this tomorrow in the office
but I am not using DiffBuilder. I am using DifferenceEngine
Last edit: Hari Rao 2018-01-17
got it working by doing the following
differenceengine.setdifferenceevaluator(differnceevaluator.downgradedifferencetoequal(comparisontype.namespace_prefix))
sorry typed via my mobile so no camel case