2 Replies Latest reply on Apr 4, 2007 8:13 AM by romanczar

    Remove matching items from XMLListCollection

      I want to remove matching items from the XMLListCollection. I tried using the for each loop:

      var item:XML;

      for each (item in xmllistcollection)
      if(item.@name == "match criteria")


      However, through the loop when the item is removed, the index of the XMLListCollection decreases and the last item does not get deleted.

      How do I delete all the items in the XMLListCollection that matches the String to be deleted?