I have made a lot of datagrids work in my time, but I seem to be missing something.
I'm receiving an xmllist and all I'm trying to do is set the dataprovider. It should be straight forward, but it's placing all the children of '<userName>some Name</userName>' into a single row.
Here's the xmllist that I'm receiving:
Here's the AS3 code receiving the xmllist and setting a provider:
Pretty simple, right? I've tried myXml.userName, myXml.children( ), myXml.children. child("userName ") and nothing seems to work.
What am I missing?
As usual, thanx n advance
I'm receiving an xmllist and all I'm trying to do is set the dataprovider. It should be straight forward, but it's placing all the children of '<userName>some Name</userName>' into a single row.
Here's the xmllist that I'm receiving:
Code:
<users><userName>rob</userName> <userName>testd3</userName> <userName>mickey</userName> <userName>john</userName> <userName>kip</userName> <userName>pauly</userName></users>
Code:
private function gotUsersOfGroups(x:XMLList):void
{
var myString:String = '<users>';
myString += x.children().child("userName");
myString += '</users>';
trace(myString);
var myXml:XML = new XML(myString);
myUserList.dataProvider = myXml;
}
What am I missing?
As usual, thanx n advance
Comment