You want to make it an ArrayCollection of typed objects along the lines of:

[Bindable]
public class NewsItem
{
    public var newsId:Number;
    public var newsDate:Date;
    public var newsTitle:String;
}

And for each node in your xml you would

var tmp:NewsItem = new NewsItem();
tmp.newsId = xmlNode.newsId;
tmp.newsDate = myDateConversionFunction(xmlNode.mewsDate);
tmp.newsTitle = xmlNode.newsTitle;
myCollection.addItem(tmp);

-Josh

On Fri, Jul 4, 2008 at 9:50 PM, andrewhopkins888 <
[EMAIL PROTECTED]> wrote:

>  I can load the arrayCollection data into a list, but cannot format the
> dataGrid.
>
> Do I have to format the columns in the datagrid to specific nodes.
>
> Any pointers in the right direction, from anyone will make my day.
>
> Main MXML file:
>
> http://www.flex4you.co.uk/e4x/application.xml
>
> XML File:
>
> http://www.flex4you.co.uk/e4x/news.xml
>
>
>
> Thanks [image: :)]
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]

Reply via email to