Depends on your XML data. An ArrayCollection is basically an Array of
Arrays, so... if your XML is complicated and multilayered with lots of
nested tags in nested tags I'm not sure you can easily convert it to an
ArrayCollection. But... if your XML looks something like this:
<person>
<name>John</name>
<name>James</name>
<name>Jude</name>
</person>
<person>
<name>Mark</name>
<name>Luke</name>
<name>Matthew</name>
</person>
Then you might have a chance :-)
Darren
>From: "DJ Lift" <[EMAIL PROTECTED]>
>Reply-To: [email protected]
>To: [email protected]
>Subject: [flexcoders] HTTPService Result to ArrayCollection
>Date: Tue, 29 Aug 2006 18:09:58 -0000
>
>Hi there,
>I'm new and I don't understand something :)
>Hopefully someone can help me out.
>
>I have a datagrid that I am attempting to populate.
>I've been able to successfully populate the grid with xml from and
>HTTPService with no
>problem.
>
>But now I want to be able to filter and create specific sort functions for
>the grid, which I
>understand requires the dataProvider for the dataGrid to be an
>ArrayCollection. Is this
>true?
>
>If so, can i somehow take the XML result from the HTTPService and make an
>ArrayCollection out of it? I'm having trouble attempting this.
>
>Below is what i have so far...
>
><mx:HTTPService id="jobInfoReq"
> url="http://mccray/~mm/oracle/joblookup.php"
> useProxy="false"
> method="GET"
> showBusyCursor="true">
> <mx:request xmlns="">
> <pirateLoc>{pirateLocSelector.label}</pirateLoc>
> <pirateClient>{pirateClientSelector.label}</pirateClient>
> <pirateProduct>{pirateProductSelector.label}</pirateProduct>
> </mx:request>
> </mx:HTTPService>
>
>
>
>
>
>
>
>--
>Flexcoders Mailing List
>FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
>Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
>Yahoo! Groups Links
>
>
>
>
>
>
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/