title: Remove metaData node from xml
body: <p>This is my xml ouput which i m working</p>
  
  <pre><code>   &lt;adamContent projectTypeID="10" genContentID="000002"&gt;
          &lt;metaData&gt;
              &lt;keywordList&gt;
                        &lt;keyword&gt;
                              &lt;word&gt;#27&lt;/word&gt;
                              &lt;relevancy&gt;120&lt;/relevancy&gt;
                        &lt;/keyword&gt;
                        &lt;keyword&gt;
                              &lt;word&gt;#43&lt;/word&gt;
                              &lt;relevancy&gt;114&lt;/relevancy&gt;
                        &lt;/keyword&gt;
               &lt;/keywordList&gt;
              &lt;taxonomy type="CPT"&gt;
                 &lt;code&gt;99374&lt;/code&gt;
              &lt;/taxonomy&gt;
          &lt;/metaData&gt;
           &lt;textContent title="Description" ordinal="0" group="0"&gt;
               &lt;p&gt;An in-depth report on the causes, diagnosis, and treatment of Alzheimer's disease.&lt;/p&gt;
          &lt;/textContent&gt;
  &lt;/adamContent&gt;
  </code></pre>
  
  <p>and i need output like that(<strong>i want to remove whole metaData node</strong>)</p>
  
  <pre><code>&lt;adamContent projectTypeID="10" genContentID="000002"&gt;
           &lt;textContent title="Description" ordinal="0" group="0"&gt;
               &lt;p&gt;An in-depth report on the causes, diagnosis, and treatment of Alzheimer's disease.&lt;/p&gt;
          &lt;/textContent&gt;
  &lt;/adamContent&gt;
  </code></pre>
  
  <p>this is my php code wht i try so far</p>
  
  <pre><code>&lt;?php
  $xmldoc = new DOMDocument();
  $atvID =   $xmldoc-&gt;load('000002.xml', LIBXML_NOBLANKS);
  foreach($atvID as $id){
      $delnode = $xmldoc-&gt;getElementsByTagName('metaData');
      $xmldoc-&gt;firstChild-&gt;removeChild($delnode-&gt;item($id));
  }
  $xmldoc-&gt;save('000002.xml');
   ?&gt;
  </code></pre>