RE: [flexcoders] XML, does it have to be RSS?
No, and the declaration is not even necessary. How is it failing? Is the result handler being called? Can you trace(xml.toXMLString());? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: Monday, May 21, 2007 2:13 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] XML, does it have to be RSS? Does the XML data HAVE to be an RSS? If I change 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 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; } Any suggestions? I'm somewhat new to Flex having worked mostly with older versions of Flash. - Jason
Re: [flexcoders] XML, does it have to be RSS?
What does the rest of your xml look like? The example you provided was the root element and it had namespace declarations. removing those and keeping the same xml following that would be the problem. Jason wrote: > Does the XML data HAVE to be an RSS? If I change > > xmlns:content="http://purl.org/rss/1.0/modules/content/"; > xmlns:wfw="http://wellformedweb.org/CommentAPI/"; > xmlns:dc="http://purl.org/dc/elements/1.1/";> > > To > > > > 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; > } > > > > 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 > > >
[flexcoders] XML, does it have to be RSS?
Does the XML data HAVE to be an RSS? If I change http://purl.org/rss/1.0/modules/content/"; xmlns:wfw="http://wellformedweb.org/CommentAPI/"; xmlns:dc="http://purl.org/dc/elements/1.1/";> To 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; } Any suggestions? I'm somewhat new to Flex having worked mostly with older versions of Flash. - Jason