Creates a variable refering to xml data child nodes : XML variable : XML Flash / Flex / ActionScript examples


Flash / Flex / ActionScript examples » XML » XML variable »

 

Creates a variable refering to xml data child nodes


 

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

        var novel:XML = <BOOK ISBN="0141182806">
          <TITLE>Ulysses</TITLE>
          <AUTHOR>Joyce, James</AUTHOR>
          <PUBLISHER>Penguin Books Ltd</PUBLISHER>
        </BOOK>
        
        var children:XMLList = novel.*;
        trace(children);

    }
  }
}

        



Leave a Comment / Note


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


Flash / Flex / ActionScript examples

 Navioo XML
» XML variable