Hello,

I hava a small problem with getting data from xml file.
What I want to do is get the image data from xml file and display
image on canves.
When I'm trying to run this application, getting the following error
"Problem parsing external XML".

And also I am not sure of writing varible(is this correct 
"jobrepeat.jobs.job.****" ?).

If somebody could help, I would appreciate it.

Thanks,

-----------------------readxmlfile.mxml--------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<mx:Application  xmlns:mx="http://www.macromedia.com/2003/mxml"; >

<mx:Model id="jobdata" source="jobdata.xml"/> 

<mx:Panel>
  <mx:Canvas width="100%" height="100%" backgroundColor="#F4FECF">      
    <mx:Canvas  x="3" y="10"  width="640" height="400" 
backgroundColor="#D3EFFE">
      <mx:Repeater id="jobrepeat" dataProvider="{jobdata}">
        <mx:Image source="{jobrepeat.jobs.job.imageid}" 
x="{jobrepeat.jobs.job.xcordinate} y="{jobrepeat.jobs.job.ycordinate}" >
        </mx:Image>
      </mx:Repeater>
    </mx:Canvas>
  </mx:Canvas>
</mx:Panel>
</mx:Application>

--------------------jobdata.xml----------------------
<?xml version="1.0" encoding="utf-8"?>
<jobs>

        <job>
                <jobname>job1</jobname>
                <jobid>200</jobid>
                <xcordinate>100</xcordinate>
                <ycordinate>100</ycordinate>
        <imageid>job1.jpg</imageid>
        </job>
        <job>
                <jobname>job2</jobname>
                <jobid>300</jobid>
                <xcordinate>200</xcordinate>
                <ycordinate>100</ycordinate>
        <imageid>job2.jpg</imageid>
        </job>
        
</jobs>
------------------------------------------------------



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to