Saturday, June 9, 2012

[Action Script] Reading from xml(rss channel) June,2012

Hi. Could somebody help meto resolve the issue about this code?
I put:
ActionScript Code: Cat-is a name of TextArearssXML is a loaded XMLfile(defined as var rssXML:XML = new XML();)for(var item:String in rssXML.channel.item)    {        Cat.text = rssXML.channel.item[item].category.toString();    }When i try to get some content from xml for exaplme:
ActionScript Code: <item>        <title>Belady Belady (8)</title>                ...                ...        <pubDate>Mon, 08 Jun 2009 01:13:55 +0000</pubDate>                ...        <category><![CDATA[Art & Design]]></category>        <category><![CDATA[Personal]]></category>        <category><![CDATA[Caricature]]></category>        <category><![CDATA[Egypt]]></category></item>
If i ger pubDate there is no problem but when I try to get category content like example above i get content like that
ActionScript Code: <category xmlns:content="...." xmlns:wfw="..." xmlns:dc="..." xmlns:atom="..." xmlns:sy="..." xmlns:slash="..." xmlns:georss="..." xmlns:geo="..." xmlns:media="..."><![CDATA[Personal]]></category>In spite of
ActionScript Code: PersonalI will be very grateful for help
Reading from xml(rss channel)

Related Post



0 comments: