package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ XML.ignoreWhitespace = false; // Don't ignore whitespace nodes var x1:XML = ; var x2:XML = ; trace(x1 == x2); // Now displays: false } }}