3 Replies Latest reply on Oct 14, 2008 7:39 PM by Newsgroup_User

    loop infinite when addItem at XMLListCollection

      Hi all,

      I have problems on combing two XMLListCollection. Checking to see whether two XMLListCollection XML is the same. If it is same, then quantity will add up and If it is not the same, then XML will be insert to the the existing XMLListColleciton.
      Problem happens when I start looping XMLListColleciton as XMLList, with additem comment

      for each ( var newXML:XML in XMLList(newXMLListCollection.*))

      the result is infinite loop over ?
      how to loop XMLListCollection with additem method ?

      It is not possible, I think I have to convert XMLListCollection to XMLList and do the add up process in XMLList. Then replace the existing XMLListCollection with the end result of XMLList.