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:
flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of malik_robinson
Sent: dinsdag 3 januari 2006 8:14
To: flexcoders@yahoogroups.com
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/">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}"/>
<mx:DataGrid x="20" y="80" id="dgPosts"
width="400">
<mx:columns>
<mx:DataGridColumn headerText="Column 1"
columnName="col1"/>
<mx:DataGridColumn headerText="Column 2"
columnName="col2"/>
</mx:columns>
</mx:DataGrid>
<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
|
- RE: [flexcoders] New to Flex, and mxml and getting an err... Franck de Bruijn
-