This content has been marked as final. Show 4 replies
I'm new to Flex myself so take this with a grain of salt, but I think if your data source is XML you have to convert it using E4X to do more than a simple display. What specific errors are you getting?
I have one program which reads XML from an HTTPService Post and snaps that to a datagrid, maybe you could try that.
Hmmm. I think what I need to do is figure out a way to convert a string variable (the xml) to an xml variable. Any ideas on that? I have the xml data stored in a string variable right now, but I want to traverse it's contents using the '.' Any ideas?
Dont know if this is still a problem but here goes.. the easiest way is to use the XMLList.
var list:XMLList = new XMLList(xmlString); From here you can traverse the list via Children() and such
You can also do something like this:
var myXML : XML = new XML( xmlStringData );
myXMLdataFormat = "e4x";
Then you could use simple e4x constructs to access the data like . . .
myXML.nodeName( @attribName )
you can google flex e4x and find lot's of great e4x sample code.
Hope that helps. . .