By default, E4X ignores whitespace nodes when comparing XML for Equality
package{
import flash.display.Sprite;
publicclass Main extends Sprite{
public function Main(){
var x1:XML = <a><b></b></a>;
var x2:XML = <a>
<b></b>
</a>;
trace(x1 == x2); // Still displays: true
}
}
}