2 Replies Latest reply on May 22, 2007 3:52 PM by gauravpal

    How to delete a node in an XML document

    gauravpal
      Hi,

      My flex plugin loads an XML document that is passed in from the ExternalInterace. I have a List control that displays data from this XML document.

      The XML looks like:
      <document>
      <response>
      <objectlist>
      <list type="typeValue">
      <object type="typeValue" name="Name Value" id="GUID Value1">
      <params>
      .........
      .........
      <params>
      </object>
      <!-- more objects in this list -->

      </list>
      </objectlist>
      </response>
      </document>

      I set the list dataProvider to xmlDoc.response.objectlist.list.object

      Thing is, I want to remove one of the object nodes before I display the data (that is, i dont want one of the nodes in the XML document to appear in the list).

      How do I do this? I could not find any way to delete an existing node in the XML api.

      -Gaurav