A comparison between an XML instance and an XMLList with only one XML instance is treated as a direct comparison between the two XML instances
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var msg1:XML = <GREETING> <TO>A</TO> <FROM>Programmer</FROM> <MESSAGE>Hello</MESSAGE> </GREETING>; var msg2:XML = <GREETING> <TO>A</TO> <FROM>Programmer</FROM> <MESSAGE>Hello</MESSAGE> </GREETING>; trace(msg1.FROM == msg2.*[1]); // } } }