4 Replies Latest reply on Nov 6, 2009 10:55 AM by Francisc

    E4X - Select distinct

    Francisc Level 3

      Hello!

       

      Given an XMLListCollection from an HTTPService with E4X result, how can I save all the attributes that are unique in another var, say ArrayCollection?

       

      e.g.

       

      <element attrib="one" ...>

      <element attrib="two" ...>

      <element attrib="one" ...>

      <element attrib="three" ...>

      <element attrib="two" ...>

      <element attrib="one" ...>

      <element attrib="three" ...>

      <element attrib="one" ...>

       

      What I want is an ArrayCollection with the unique attributes @attrib. (one, two, three).

      How can I do this?

       

      Thank you!