[flexcoders] Re: New to Flex, and mxml and getting an error trying to use RSS

2006-01-08 Thread malik_robinson
Hi,

thanks for the help.

Everything seems to be working fine and I am getting the data in my 
grid, appreciated.

-Malik
--- In flexcoders@yahoogroups.com, Franck de Bruijn 
[EMAIL PROTECTED] wrote:

 Hi Malik,
 
  
 
 I have been able to reproduce your error.
 
  
 
 The '?xml . ' part needs to start at exactly the 1st row and the 
1st column
 of your .mxml file. If you add a space or a new line before it, the 
error
 you mention below will appear.
 
  
 
 I think we were a little bit put on the wrong foot thinking your 
problem was
 a runtime error, but it appears to be a compile time error. Try to 
be more
 specific next time.
 
  
 
 Cheers,
 
 Franck
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of malik_robinson
 Sent: vrijdag 6 januari 2006 8:52
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: New to Flex, and mxml and getting an 
error trying
 to use RSS
 
  
 
 Hi,
 
 I get this error with that code:
 
 The processing instruction target matching [xX][mM][lL] is not 
 allowed.
 
 I copied that exact code into flex builder 2 alpha version and I 
get 
 that error message.
 
 I wonder do I not have it setup correctly.
 
 -Malik  
 
 --- In flexcoders@yahoogroups.com, fla coder [EMAIL PROTECTED] wrote:
 
  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=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 flexcoders@yahoogroups.com, 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: 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=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

RE: [flexcoders] Re: New to Flex, and mxml and getting an error trying to use RSS

2006-01-06 Thread Franck de Bruijn










Hi Malik,



I have been able to reproduce your error.



The ?xml   part
needs to start at exactly the 1st row and the 1st column
of your .mxml file. If you add a space or a new line before it, the error you
mention below will appear.



I think we were a little bit put on the
wrong foot thinking your problem was a runtime error, but it appears to be a
compile time error. Try to be more specific next time.



Cheers,

Franck











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of malik_robinson
Sent: vrijdag 6 januari 2006 8:52
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: New to
Flex, and mxml and getting an error trying to use RSS





Hi,

I get this error with that code:

The processing instruction target matching
[xX][mM][lL] is not 
allowed.

I copied that exact code into flex builder 2 alpha
version and I get 
that error message.

I wonder do I not have it setup correctly.

-Malik 

--- In flexcoders@yahoogroups.com,
fla coder
[EMAIL PROTECTED] wrote:

 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 flexcoders@yahoogroups.com,
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: flexcoders@yahoogroups.com

[mailto:flexcoders@yahoogroups.com]
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}/
   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
   

[flexcoders] Re: New to Flex, and mxml and getting an error trying to use RSS

2006-01-04 Thread malik_robinson



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 flexcoders@yahoogroups.com, "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: 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 RSSHi,  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="" 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]   * 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  









Re: [flexcoders] Re: New to Flex, and mxml and getting an error trying to use RSS

2006-01-04 Thread fla coder



the example still works for me todaytry 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:columnsmx: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:ApplicationOn 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 flexcoders@yahoogroups.com, 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: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] 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 RSSHi,  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



  Visit your group flexcoders on the web.

  To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! 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