2 Replies Latest reply on Feb 12, 2008 4:39 AM by pchris1977

    Filtering XMLListCollection

    pchris1977
      I have a XMLListCollection variable with filterfunction enabled.
      var list:XMLListCollectio=XMLListCollection(XmlList(
      <data>
      <item Id='1'/>
      <item Id='2'/>
      <item Id='3'/>
      <item Id='4'/>
      </data>));

      The filterfunction for this XMLListCollection is
      return (item.@Id>3);
      I want to add a new item between 2 and 3. If I use list.additemat(item,2) I receive an error message.I guess that I need to add this item to list.source but I don't know how.

      Please help me (if you can)
      Cristy