package{ import flash.display.Sprite; public class 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 } } }