1 Reply Latest reply on Aug 4, 2008 5:48 PM by Gregory Lafrance

    Accessing XML elements in an ArrayCollection

    Cr99 Level 1
      I have and ArrayCollection

      <mx:ArrayCollection id="array"
      source="{ArrayUtil.toArray(reportIDlist.lastResult.system.data)}"/>

      which gets filled with XML from an HTTPService call which looks like this:

      <system>
      <data>
      <name>James</name>
      <id>007</id>
      </data>
      </system>

      Now I would like to store the list of all of the IDs in an Array. How do I do this? It's easy to display in a DataGrid or a ComboBox, but I don't know how to get at the list of <id> objects in a stand alone array. I want to call 'contains' to search and see if a certain element is in the id list.