0 Replies Latest reply on Jul 7, 2010 10:46 AM by flexchief

    Display iTunes xml data in a datagrid

    flexchief Level 1

      Hi,

       

      Can anyone please tell me how to display the data stored in my iTunes Music Library.xml file in a datagrid?

       

      I know how to read an xml file using the code below but after that I am stumpped?

       

                  private function readXML():void
                  {
                      var file = new File( "\assets\iTunes Music Library.xml" );
         
                      var stream = new FileStream();
                      stream.open( file, FileMode.READ );
                     
                      var myXML = new XML( stream.readUTFBytes(stream.bytesAvailable) );
                     
                      stream.close();               
                  }

       

      Any help would be great!

       

      Thanks

      Adam

      Flexchief