package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var product:XML = <PRODUCT QUANTITY="1"><COST>1</COST></PRODUCT>; trace(product.@QUANTITY == product.COST); // Displays: true } } }