Adding New Attributes and Elements
package{ import flash.display.Sprite; public class Main extends Sprite{ public function Main(){ var novel:XML = <BOOK/>; novel.@ISBN = "0000000000"; novel.TITLE = "ActionScript"; novel.AUTHOR = "J, J"; novel.PUBLISHER = "Books Ltd"; novel.SETTING.CITY = "Dublin"; novel.SETTING.COUNTRY = "Ireland"; trace(novel); } } }