title: Compare scala.xml.Elem object in unit test
body: <p>I have two <code>scala.xml.Elem</code> objects (actual, expected). I am using JUnit 4, but have also included XMLUnit 1.3.</p>
  
  <p>Is there any easy way to compare the two objects for equality, ignoring attribute order and insignificant whitespace in the XML?</p>
  
  <p>I tried <code>XMLUnit.assertXMLEqual()</code>, but it complains that the types are <code>scala.xml.Elem</code>.</p>
  
  <p>I know that I can use <code>equals</code> or <code>==</code>, but I would like the benefit of having the assertion print the two values when they are not equal. If I use <code>assertTrue(actual.equals(expected))</code>, and they are not equal, the only output will be "assertion failed".</p>