the example still works for me today

try this code:

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml " xmlns="*" initialize="feedRequest.send()">
    <mx:HTTPService
        id="feedRequest"
        url="" href="http://weblogs.macromedia.com/mchotin/index.xml"> http://weblogs.macromedia.com/mchotin/index.xml"
        useProxy="false"/>
       
    <mx:Canvas width="100%" height="100%">
        <mx:Label x="20" y="50" text="{ feedRequest.result.rss.channel.title}"/>
        <mx:DataGrid x="20" y="80" width="400" dataProvider="{feedRequest.result.rss.channel.item}" id="dgPosts">
            <mx:columns>
                <mx:DataGridColumn headerText="Posts" columnName="title"/>
                <mx:DataGridColumn headerText="Date" columnName="pubDate"/>
            </mx:columns>
        </mx:DataGrid>
        <mx:TextArea x="20" y="245" width="400" htmlText="{dgPosts.selectedItem.description}"/>
        <mx:Link x="20" y="300" label="Read full post" click="getURL( dgPosts.selectedItem.link);"/>   
    </mx:Canvas>
</mx:Application>



On 04/01/06, malik_robinson < [EMAIL PROTECTED]> wrote:

Hi,

I tried pointing it at the following URL:

weblogs.macromedia.com/mchotin

and I received the same error, can you try it using this URL and let me know if you are able to see the result.  This URL should have the crossdomain.xml file in it as this URL is used in a tutorial on the Macromedia/Adobe website.

Thanks for the response.

Malik


--- In [email protected], "Franck de Bruijn" <[EMAIL PROTECTED]> wrote:
>
> Hi Malik,
>
>
>
> It looks like your url is not pointing to a real XML file. I tried your app
> and I got the message 'Error #1090: XML parser failure: element is
> malformed'.
>
>
>
> Also be aware that you cannot point to any arbitrary URL in the WWW, since
> Flex apps are only allowed to obtain resources from the server they have
> been deployed from, unless there is a crossdomain.xml file present granting
> you access to the resource.
>
>
>
> Cheers,
>
> Franck
>
>
>
> _____
>
> From: [email protected] [mailto:[email protected]] On
> Behalf Of malik_robinson
> Sent: dinsdag 3 januari 2006 8:14
> To: [email protected]
> Subject: [flexcoders] New to Flex, and mxml and getting an error trying to
> use RSS
>
>
>
> Hi,
>
> I am very new to Flex and trying to try some basic tutorials in the
> help documentation that comes with Flex Builder 2 alpha.
>
> I searched the mailing list/archives trying to find out why I get the
> following error message but to no avail. The error is below:
>
> "The processing instruction target matching "[xX][mM][IL]" is not
> allowed."
>
> My code is below and is basically from the documentation that comes
> with the flex builder 2 alpha 1 version. The main difference is I am
> trying to point it as a different url other than the
> weblogs.macromedia.com/mchotin or whatever the exact url is. I am
> trying to point it at a different URL.
>
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx=" http://www.macromedia.com/2005/mxml"
> xmlns="*"
> initialize="feedRequest.send ()" >
>
> <mx:HTTPService
> id="feedRequest"
> url="" href="http://groups.yahoo.com/group/flexcoders/" target="_blank" > http://groups.yahoo.com/group/flexcoders/"
> useProxy="false"/>
>
> <mx:Canvas width="100%" height="100%">
> <mx:Label x="20" y="50"
> text="{feedRequest.result.rss.channel.title}"/>
> <mxataGrid x="20" y="80" id="dgPosts" width="400">
> <mx:columns>
> <mxataGridColumn headerText="Column 1"
> columnName="col1"/>
> <mxataGridColumn headerText="Column 2"
> columnName="col2"/>
> </mx:columns>
> </mxataGrid>
> <mx:TextArea x="20" y="245" width="400" />
> <mx:Link x="20" y="300" label="Read Full Post" />
> </mx:Canvas>
> </mx:Application>
>
>
>
>
>
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>
>
>
>
> _____
>
> YAHOO! GROUPS LINKS
>
>
>
> * Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>
> * To unsubscribe from this group, send an email to:
> [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]?subject=Unsubscribe>
>
> * Your use of Yahoo! Groups is subject to the Yahoo!
> <http://docs.yahoo.com/info/terms/ > Terms of Service.
>
>
>
> _____
>



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to