Just to be clear, this is the XMl from the RPC
<DataPoint Date="38000" Value="34.51"/>
<DataPoint Date="38001" Value="35.06"/>
Not something in the MXML...but the data received by the MXML page. I know this since when I add an event handler I can print it out.
You'll need your data provider to be a list of DataPoint elements. The e4x expression to extract the DataPoint elements from your XML would be:
Note that you always exclude the root tag from e4x expressions. So I would expect your dataprovider assignment to look like this:
You can then access attributes of your DataPoint elements as follows:
I am learning now about e4x. For those who don't know...
For those that don't know E4X stands for ECMAScript for XML and this specification introduces some new functionality that makes working with XML a lot simpler. New to AS3 are the XML, XMLList,QSpace and Namespace E4X classes. E4X not only makes life simpler but provides greater code consistency and familiarity (we can use dot syntax more similiar to ActionScript).