Skip to Content
Former Member
Oct 27, 2007 at 11:45 AM

Reading XML with Flex


Ok I've gone through Ed's awesome Flex tutorial in the wiki but for some reason I simply can't nail this one.

	<mx:Label y="10" text="Craig's Movie List" id="lblTitle" enabled="true" horizontalCenter="0" fontSize="19" fontFamily="Arial" fontWeight="bold" fontStyle="italic"/>
     <mx:HTTPService id="httpRSS" url="" resultFormat="e4x" />
     <mx:DataGrid id="entries" verticalCenter="11" horizontalCenter="0" width="480" dataProvider="{}" height="230">
			<mx:DataGridColumn headerText="Name" dataField="title" width="300"/>
            <mx:DataGridColumn headerText="Rating" dataField="zc:Rating" width="50"/>
            <mx:DataGridColumn headerText="Type" dataField="zc:Genre"/>
            <mx:DataGridColumn headerText="Runtime" dataField="zc:Runtime"/>

The RSS looks like

  <title>Winnie the Pooh - A New friend for Winnie Pooh</title>
  <description><b>Title</b> : Winnie the Pooh - A New friend for Winnie Pooh<br/><b>Genre</b> : Zeichentrick<br/><b>Rating</b> : G<br/><b>Director</b> : <br/><b>Year</b> : <br/><b>Runtime</b> : 65<br/><b>Status</b> : Available</description>
  <guid isPermaLink="true"></guid>
  <zc:Title>Winnie the Pooh - A New friend for Winnie Pooh</zc:Title>

So why can't I access the zc elements? What am I missing?