1 Reply Latest reply on Jan 12, 2007 10:28 AM by Sam_Indianapolis

    Flex/Apollo Podcast App

    ojk007
      Ok i know its possible.
      A standard Itunes Podcast XML file reads as:
      ---------
      <rss version="2.0">

      <channel>
      <title>My Podcast</title>
      <link> http://www.mywebsite.com</link>
      <description>THIS IS WHERE YOU PUT IN A DESCRIPTION OF THE PODCAST / BAND, ETC.</description>
      <generator>My Text Editor</generator>
      <docs> http://blogs.law.harvard.edu/tech/rss</docs>
      <language>en-us</language> Of course, you can put in a different language
      <copyright>This work is licensed under a Creative Commons License - Attribution-NonCommercial-ShareAlike - http://creativecommons.org/licenses/by-nc-sa/2.0/</copyright>OPTIONAL--you may not want this language
      <managingEditor>myemail@mywebsite.com </managingEditor>
      <webMaster>myemail@mywebsite.com </webMaster>
      <pubDate>Thu, 1 Dec 2005 18:17:37 -0800</pubDate>
      <lastBuildDate>Thu, 1 Dec 2005 18:17:37 -0800<</lastBuildDate>
      <category>Rock</category>
      <ttl>720</ttl>

      <image>
      <url> http://www.mywebsite.com/podcastimage/144.jpg</url>This is your logo.
      <title>My Podcast</title>
      <link> http://www.mywebsite.com</link>
      <width>300</width>
      <height>300</height>
      </image>
      <itunes:author>My Name</itunes:author>
      <itunes:subtitle>THIS IS WHERE YOU PUT IN A SHORT TITLE OF THE PODCAST / BAND, ETC.</itunes:subtitle>
      <itunes:summary>THIS IS WHERE YOU PUT IN A SHORT DESCRIPTION OF THE PODCAST / BAND, ETC.</itunes:summary>
      <itunes:keywords>rock band music punk techno etc etc etc... </itunes:keywords>
      <itunes:explicit>no</itunes:explicit>Put YES if you use language or sex or naughty things.

      <itunes:image href=" http://www.mywebsite.com/podcastimage/144.jpg"/>
      <itunes:owner>
      <itunes:name>My Name</itunes:name>
      <itunes:email>myemail@mywebsite.com</itunes:email>
      </itunes:owner>
      <itunes:category text="Rock">
      <itunes:category text="Music"/>
      </itunes:category>
      <item>
      <title>Podcast 1: The Show at CBGB</title>
      <link> http://www.mywebsite.com/mp3/show1.mp3</link>
      <description>We played CBGB last night eventhough it has now turned into yuppie condos.</description>
      <author>myemail@mywebsite.com</author>
      <pubDate>Sun, 27 Nov 2005 18:17:32 -0800</pubDate>
      <category>Rock</category>
      <enclosure url=" http://www.mywebsite.com/mp3/show1.mp3" length="110039585" type="audio/mpeg"/>
      <itunes:author>The Band</itunes:author>
      <itunes:subtitle>We played CBGB last night eventhough it has now turned into yuppie condos.</itunes:subtitle>
      <itunes:summary>We played CBGB last night eventhough it has now turned into yuppie condos.</itunes:summary>
      <itunes:explicit>no</itunes:explicit>
      <itunes:duration>11:00</itunes:duration>
      </item>
      </channel>
      ---------
      Soz for the massive post. My question is, how do i read the nodes with the itunes namespace i.e
      <itunes:this>
        • 1. Re: Flex/Apollo Podcast App
          Sam_Indianapolis
          Hello,

          I searched around for this answer and came across it by trial and error. Basically you create an array which you place in a arrayCollection. The array will have all the items in the rss.channel portion of the XML. Example Below:

          var a:Array = new Array(httpserviceid.lastResult.rss.channel);
          var array:ArrayCollection = new ArrayCollection(a);
          Alert.show(''+array.getItemAt(0).author);

          You can then set the a data provider for a datagrid and reference each of the <itunes:anything> and it removes the "itunes:" so you can just reference as you would a normal .xml as shown in the example above.

          Hope this helps out,


          Sam