Found solution for first part of the above question diff = DiffBuilder.compare(testxml) .withTest(resxml) .withNodeMatcher(new DefaultNodeMatcher(ElementSelectors.conditionalBuilder().whenElementIsNamed("ShiftAttribute").thenUse(ElementSelectors.byNameAndAttributes("ShiftAttributeCode")).elseUse(ElementSelectors.byName).build())) .build();
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> VS <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differences <priceinfo amount="19999.00" "="" netamount="19999.00" discounttypes="3"...
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> VS <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differences <priceinfo amount="19999.00" "="" netamount="19999.00" discounttypes="3"...
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> vs <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differences <priceinfo amount="19999.00" "="" netamount="19999.00" discounttypes="3"...
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> vs <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differnce <priceinfo amount="19999.00" "="" netamount="19999.00" discounttypes="3"...
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> vs <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differnce <priceinfo amount="19999.00" "="" netamount="19999.00" discounttypes="3"...
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> vs <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differnce <PriceInfo " Amount="19999.00" DiscountTypes="3" AMZAmount="225.00" NetAmount="19999.00"/>...
How to ignore below element order in XMLUnit2, I find something in XMLUnit1, but trying to do in XMLunit2, please let me know if any one have any idea <shiftattribute shiftattributecode="41"> <shiftattribute shiftattributecode="17"> vs <shiftattribute shiftattributecode="17"> <shiftattribute shiftattributecode="41"></shiftattribute></shiftattribute></shiftattribute></shiftattribute> Also, please help me ignoring below differnce <PriceInfo " Amount="19999.00" DiscountTypes="3" AMZAmount="225.00" NetAmount="19999.00"/>...