title: Deleting a particular node using the e4x syntax
body: <p>I have this XML structure:</p>
  
  <pre><code>&lt;numb&gt;
    &lt;variable&gt;
     &lt;name&gt;john&lt;/name&gt;
     &lt;age&gt;12&lt;/age&gt;
   &lt;/variable&gt;
   &lt;variable&gt;
     &lt;name&gt;janet&lt;/name&gt;
     &lt;age&gt;10&lt;/age&gt;
   &lt;/variable&gt;
   &lt;variable&gt;
     &lt;name&gt;johanna&lt;/name&gt;
     &lt;age&gt;22&lt;/age&gt;
   &lt;/variable&gt;
   &lt;variable&gt;
    &lt;name&gt;harry&lt;/name&gt;
    &lt;age&gt;24&lt;/age&gt;
   &lt;/variable&gt;
  &lt;/numb&gt;
  </code></pre>
  
  <p>If I try to delete the variable with name <em>johanna</em> I do this:</p>
  
  <pre><code>  delete numb.variable.(name=="johanna);
  </code></pre>
  
  <p>but then, I get this error:</p>
  
  <pre><code> "Error #1119: Delete operator is not supported with operand of type XMLList"
  </code></pre>
  
  <p>suggesting the numb.variable.(name=="johanna") is an XMLList ..but then I tried this:</p>
  
  <pre><code>delete XML(numb.variable.(numb=="johanna"); 
  </code></pre>
  
  <p>but that didn't delete anything..</p>
  
  <p>Anyone knows how I could delete a certain variable in the numb XML?</p>