public var test:XML; private function initapp():void { test = new XML(bob joe); delete test.client.(username="bob"); if (test is XML) { trace (test); } } // if statement outputs the XML.