Adding New Attributes and Elements : Attributes : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » Attributes »

 

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);
    }
  }
}

        



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


Flash / Flex / ActionScript examples

 Navioo XML
» Attributes