Menu

How to ignore namespace comparison in 2.x?

Help
Hari Rao
2018-01-17
2018-01-18
  • Hari Rao

    Hari Rao - 2018-01-17

    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.

     
  • Hari Rao

    Hari Rao - 2018-01-17

    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
  • Hari Rao

    Hari Rao - 2018-01-17

    my guess is there should be some wrapper class. Thanks in advance for the help

     
  • Hari Rao

    Hari Rao - 2018-01-17

    but I am not using DiffBuilder. I am using DifferenceEngine

     

    Last edit: Hari Rao 2018-01-17
  • Hari Rao

    Hari Rao - 2018-01-18

    got it working by doing the following

    differenceengine.setdifferenceevaluator(differnceevaluator.downgradedifferencetoequal(comparisontype.namespace_prefix))

    sorry typed via my mobile so no camel case

     

Log in to post a comment.

MongoDB Logo MongoDB