1 Reply Latest reply on May 8, 2007 4:45 PM by ntsiii


    KomputerMan.com Level 1
      Hello all you Flexers...

      I have a bunch of data in an XMLListCollection. The collection has 3 levels to it: Table or View is the top level, followed by table / view name, followed by field name.

      This data in the collection is being used in a checked tree control. Each of the field names can be checked or unchecked. When the user presses an update button I need to be able to send the date in the XMLListCollection (as seen by the tree control) back to ColdFusion.

      My question is what is the best method for returning data from a XMLListCollection to ColdFusion and how would I format the data??? I.E. should I loop through the XMLListCollection (how do I do that???) to populate an array and then send the array back to CF???

      Oh a little code snippet would be appreciated too!!! :)

      Have an Ordinary Day...
      KomputerMan ~|:-)
        • 1. Re: XMLListCollection
          ntsiii Level 3
          Just send it as a string and manipulate the XML on the CF side.

          I would make sure you have a root tag, though since handling collections of xml nodes can be tricky in many languages.

          var sXML:String = "<root>;
          sXML += myXMLListCollection.toXMLString();
          sXML += "</root>;

          var oRequest:Object = new Object();
          oRequest.xmlstring = sXML;