Well this is a question I had.
 
Doesnt using E4X and HTTPService essentially set up an XMLListCollection
for you?
 
bra

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, February 05, 2008 4:17 PM
To: [email protected]
Subject: RE: [flexcoders] problem parsing a XML file






Set resultFormat="e4x", and work with XMLList and XMLListCollection
instead of the default Object.



Tracy




  _____  


From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Tuesday, February 05, 2008 3:27 PM
To: [email protected]
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.
<http://www.adobe.com/2006/mxml> com/2006/mxml"
layout="absolute" initialize="portFolio.send();">

<mx:HTTPService id="portFolio"
url="http://localhost/
<http://localhost/Main/WebSearchRss?space=Organization&amp;text=WebHome>
Main/WebSearchRss?space=Organization&amp;text=WebHome"
result="newArray = portFolio.lastResult.RDF.item"/> 

/*********************************************************/
AND THE XML FILE IS

/*********************************************************/

<rdf:RDF xmlns:rdf="http://www.w3.
<http://www.w3.org/1999/02/22-rdf-syntax-ns>
org/1999/02/22-rdf-syntax-ns#"
xmlns:xlink="http://www.w3. <http://www.w3.org/1999/xlink>
org/1999/xlink"
xmlns="http://purl. <http://purl.org/rss/1.0/> org/rss/1.0/"
xmlns:dc="http://purl. <http://purl.org/dc/elements/1.1/>
org/dc/elements/1.1/"
xmlns:wiki="http://purl. <http://purl.org/rss/1.0/modules/wiki/>
org/rss/1.0/modules/wiki/"
xmlns:html="http://www.w3. <http://www.w3.org/1999/xhtml>
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/
<http://localhost/skins/albatross/logo.png> skins/albatross/logo.png"/>
<dc:language>en</dc:language>
<dc:rights>This wiki is licensed under a &#60;html:a
href=&#34;http://creativecomm
<http://creativecommons.org/licenses/by/1.0/&#34;&#62;Creative>
ons.org/licenses/by/1.0/&#34;&#62;Creative
Commons&#60;/html:a&#62; license</dc:rights>

<dc:publisher>Administrator </dc:publisher>
<dc:creator>Administrator </dc:creator>
<items>
<rdf:Seq>
<rdf:li rdf:resource="http://localhost/
<http://localhost/Organization/?language=en> Organization/?language=en"
/>
</rdf:Seq>
</items>
</channel>
<image rdf:about="http://localhost/ <http://localhost/logo.png>
logo.png">
<title>XWiki Logo</title>
<link>http://localhost</link>

<url>http://localhost/ <http://localhost/logo.png> logo.png</url>
</image>

<item rdf:about="http://localhost/
<http://localhost/Organization/?language=en> Organization/?language=en">
<title>Organization</title>
<link>http://localhost/ <http://localhost/Organization/?language=en>
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>

/*********************************************************/





 

Reply via email to