4 Replies Latest reply on Jun 8, 2007 5:21 AM by bhutz

    ArrayCollection/Single XML Node problem

    FurDervish
      I've encountered a very frustrating situation that I would LOVE some help with. I am getting xml back from an HTTPService that I'm casting as an ArrayCollection. Very simple code:

      [Bindable]
      private var queueCol:ArrayCollection;
      ...
      queueCol = event.result.Response.CallQueue.QueueItem;

      This works great as long as there are multiple "QueueItem" nodes. once the sml gets down to ONE QueueItem Flex throws an ugly error. I have found this in other areas as well. It seems Flex cannot reconcile xml of only single child nodes.

      Has anyone else encountered this? Is there a workaround/different approach to get around this?