No, I advise resultFormat="e4x".

 

"xml" is the old fashioned AS2 xml object.  E4x is MUCH better.  Trust
me.

 

But yes, debug the result.

 

Tracy

 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Anthony DeBonis
Sent: Monday, May 21, 2007 5:44 PM
To: [email protected]
Subject: [flexcoders] Re: XML, does it have to be RSS?

 

On your httpService set resultFormat="xml" 
Then use debugger to see what you get back in result event to then 
see how to pick out what your looking for. Should work with out a 
problem.

--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "Jason" <[EMAIL PROTECTED]> wrote:
>
> Does the XML data HAVE to be an RSS? If I change 
> 
> <rss version="2.0"
> xmlns:content="http://purl.org/rss/1.0/modules/content/
<http://purl.org/rss/1.0/modules/content/> "
> xmlns:wfw="http://wellformedweb.org/CommentAPI/
<http://wellformedweb.org/CommentAPI/> "
> xmlns:dc="http://purl.org/dc/elements/1.1/
<http://purl.org/dc/elements/1.1/> ">
> 
> To
> 
> <?xml version="1.0" encoding="UTF-8" ?>
> 
> The load fails. I haven't worked to much with XML so a lot of this 
is
> new to me.
> 
> ***
> 
> I am using the following syntax:
> 
> private function onFeedResult(event:ResultEvent):void {
> var xml:XML = new XML(event.message.body);
> xml.ignoreWhitespace = true;
> feedItems = new XMLListCollection(xml.foo.item);
> panelTitle = xml.foo.title;
> }
> 
> 
> 
> <mx:HTTPService 
> id="dataRequest"
> url="data/data.xml"
> result="onFeedResult(event);"
> useProxy="false"/>
> 
> 
> Any suggestions? I'm somewhat new to Flex having worked mostly with
> older versions of Flash.
> 
> 
> - Jason
>

 

Reply via email to