Accept xml dom results when toprettyxml provides stable ordering
Python3.8 changed the behavior of toprettyxml: "The toprettyxml() method now preserves the attribute order specified by the user".
which thus changed the expected output. We also need the test to remain with previous python version which were apparently using alphabetic. So let us keep the two expected output.