Set resultFormat="e4x", and work with XMLList and XMLListCollection instead of the default Object.
Tracy ________________________________ From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of hworke Sent: Tuesday, February 05, 2008 3:27 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] problem parsing a XML file Hi my following code cannot parse the below RSS feed, it is returning an array with no no object. There is one item in this RSS link so the array should have one item!!!!! Any suggestions!!!!! MY code: /********************************************************/ <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute" initialize="portFolio.send();"> <mx:HTTPService id="portFolio" url="http://localhost/Main/WebSearchRss?space=Organization&text=WebH ome <http://localhost/Main/WebSearchRss?space=Organization&text=WebHome> " result="newArray = portFolio.lastResult.RDF.item"/> /*********************************************************/ AND THE XML FILE IS /*********************************************************/ <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns# <http://www.w3.org/1999/02/22-rdf-syntax-ns> " xmlns:xlink="http://www.w3.org/1999/xlink <http://www.w3.org/1999/xlink> " xmlns="http://purl.org/rss/1.0/ <http://purl.org/rss/1.0/> " xmlns:dc="http://purl.org/dc/elements/1.1/ <http://purl.org/dc/elements/1.1/> " xmlns:wiki="http://purl.org/rss/1.0/modules/wiki/ <http://purl.org/rss/1.0/modules/wiki/> " xmlns:html="http://www.w3.org/1999/xhtml <http://www.w3.org/1999/xhtml> "> <channel rdf:about="http://localhost"> <title> localhost </title> <link>http://localhost</link> <label> localhost </label> <description> RSS feed for search on 'WebHome' </description> <content> localhost </content> <taglist> localhost </taglist> <image rdf:resource="http://localhost/skins/albatross/logo.png <http://localhost/skins/albatross/logo.png> "/> <dc:language>en</dc:language> <dc:rights>This wiki is licensed under a <html:a href="http://creativecommons.org/licenses/by/1.0/">Creative <http://creativecommons.org/licenses/by/1.0/">Creative> Commons</html:a> license</dc:rights> <dc:publisher>Administrator </dc:publisher> <dc:creator>Administrator </dc:creator> <items> <rdf:Seq> <rdf:li rdf:resource="http://localhost/Organization/?language=en <http://localhost/Organization/?language=en> " /> </rdf:Seq> </items> </channel> <image rdf:about="http://localhost/logo.png <http://localhost/logo.png> "> <title>XWiki Logo</title> <link>http://localhost</link> <url>http://localhost/logo.png <http://localhost/logo.png> </url> </image> <item rdf:about="http://localhost/Organization/?language=en <http://localhost/Organization/?language=en> "> <title>Organization</title> <link>http://localhost/Organization/?language=en <http://localhost/Organization/?language=en> </link> <description>Version 1.10 edited by Administrator on 2008-02-04 12:23:05.0</description> <label>WebHome</label> <taglist></taglist> <content>$doc.getTags()</content> <dc:date>2008-02-04T12:23:05-08:00</dc:date> <dc:creator>Administrator </dc:creator> <dc:contributor> <rdf:Description link=""> <rdf:value>Administrator </rdf:value> </rdf:Description> </dc:contributor> </item> </rdf:RDF> /*********************************************************/