package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var order:XML = <ORDER> <ITEM SKU="374"> <NAME>Toy</NAME> <PRICE>39.99</PRICE> <QUANTITY>2</QUANTITY> </ITEM> </ORDER> for (var childName:String in order.*) { trace(childName); } } }}
Name (required)
email (will not be published) (required)
Website