package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var example:XML = <example/>; example.firstname = "Darron"; // Create a text node from a number example.number = 24.9; // Create a text node from a boolean example.boolean = true; // Create a text node from an array example.abc = ["a", undefined, "b", "c", null, 7, false]; trace( example ); } }}
Name (required)
email (will not be published) (required)
Website