2 Replies Latest reply on Dec 30, 2007 1:37 PM by fi2itoxlay

    Update XML object

    fi2itoxlay
      Hi.. I am having problems knowing how to update an existing XML object. For example:

      public var carsXML:XML = new XML(
      <cars>
      <car id="1" make="Acura" model="RSX"/>
      <car id="2" make="Honda" model="Accord"/>
      <car id="3" make="Toyota" model="Camry"/>
      </cars>
      );

      This XML is set as a dataprovider for a datagrid. The user can click on an item and update the MAKE or MODEL of the selection. After the user make the changes, I need to take these changes and update the XML with the changes when the user clicks on the SAVE button.

      How would I update the selected node of the XML only?

      Thanks.
      - L