Skip to content
Advertisement

Tag: xmlunit

Compare two XML strings ignoring element order

Suppose I have two xml strings How to write a test that compares those two strings and ignores the element order? I want the test to be as short as possible, no place for 10-line XML parsing etc. I’m looking for a simple assertion or something similar. I have this (which doesn’t work) Answer My original answer is outdated. If

Advertisement