Change the element's value : XML Element : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XML Element »

 

Change the element's value


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){


        var novel:XML = <BOOK>
            <AUTHOR>J, J</AUTHOR>
            <AUTHOR>S, S</AUTHOR>
          </BOOK>;
        novel.AUTHOR[0].setName("WRITER");
        
        trace(novel);
        
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Element