Have you tried: myDP = xmlData.partsList.catalog as ArrayCollection;
? --- In [email protected], "helihobby" <[EMAIL PROTECTED]> wrote: > > Hello, > I have XML data which comes back from a server via a custom socket. > How can I convert that the to an ArrayCollection ? > > If I try: > > myDP = new ArrayCollection(); > myDP = ArrayCollection(xmlData.partsList.catalog); > > I get a runtime error the XML List collection can not be converted to > an array collection. > > I know I can do a for loop and re-build it but I was wondering if there > is a quick qay to do it. > > I know the HTTPService can do it with the result inline tag which will > convert the XML data to an Array Data provider but I am not using it. I > am using Sockets. > > Thank you for all the help, > > Sean. >

