title: Delete XML node with AS3
body: <p>I'd like to delete some XML node with AS3. I've searched on google how to do that, but nothing seems to work. </p>
  
  <p>Here a part of my XML :</p>
  
  <pre><code>&lt;feed xmlns:xxxx="xxxx" xmlns:opensearch="xxx" xmlns="xxxx"&gt;
      &lt;title/&gt;
      &lt;updated&gt;date&lt;/updated&gt;
      &lt;author&gt;
          &lt;name&gt;xxxxx&lt;/name&gt;
      &lt;/author&gt;
      &lt;id&gt;urn:tag:api@xxxx,date&lt;/id&gt;
  &lt;/feed&gt;
  </code></pre>
  
  <p>Here my AS3 :</p>
  
  <pre><code>package {
  
    import flash.text.TextField;
    import flash.events.*;
    import flash.utils.*;
    import flash.display.*;
    import flash.net.*;
  
      public class Hello extends Sprite
      {  
  
      // Attributs
      private var xmlLoader:URLLoader = new URLLoader();
  
      // Constructor
      public function Hello()
      {
        // Call XML Method
        XMLcall();
      }
  
      // XMLcall Method
      private function XMLcall():void
      {
        xmlLoader.load(new URLRequest("xxx"));
        // When loaded, add event and launch XMLparser
        xmlLoader.addEventListener(Event.COMPLETE, XMLcreate);
      }
  
      // XMLCreate Method
      private function XMLcreate(e:Event):void
      {
        // Create var myXML which contains the xml
        var myXML:XML = new XML(e.target.data);
  
        // Delete node
        delete myXML.author;
  
        // Save as myxml.xml
        var bytes:ByteArray = new ByteArray();
        var fileRef:FileReference=new FileReference();
        fileRef.save(myXML, "myxml.xml");
      }
  
      }
  }
  </code></pre>
  
  <p>This code works but the node "Author" is still in my xml...</p>