0 Replies Latest reply on Sep 11, 2009 1:48 PM by GKROCKZ

    RSS Feed Help

    GKROCKZ

      I am trying to read a RSS feed , parse it and present it in an appropriate format in flex. I am able to read all the elements except the elements referring to a namespace

       

       

      Snippet:

      ------------

       

      public function resultHandler(event:ResultEvent):void{

          collection = new ArrayCollection();

          var xml:XML = XML(event.result);

                  //xml.removeNamespace(new Namespace("http://www.premierleague.com/rss/article.html"));           

      var item:XMLList = xml.child("channel").child("item");

          var iter:XML;

         

          for each(iter in item){

          Alert.show(iter.children());

          collection.addItem({Title:iter.child("title"),Description:iter.child("description"),Link:i ter.child("link"),Date:iter.child("pubDate"),Image:iter.child("teaserImage")});

          }      

         

              gk.addEventListener(ListEvent.ITEM_CLICK,itemClick);

      }

       

       

      Here the handler function recieves a result object as feed converts i to an XML and fetches the items from the feed. I am able to access children of items such as link and description. But i am not able to access children of item such as <article:uid> or <article:teaserImage>. Is there anyway tht i can access the content of these elements?