Reading Text Nodes and Their Values : XML Object : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XML Object »

 

Reading Text Nodes and Their Values


 

package{
  import flash.display.Sprite;
  
  public class Main extends Sprite{
    public function Main(){
        var book:XML = <book>
                         <title>ActionScript</title>
                       </book>;
        
        var title:String = book.title.toString(  );
        
        tracetitle );
    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML Object