title: Html Agility Pack - Remove Tags by ID Or Class
body: <p>Here is my simplified HTML:</p>
  
  <pre><code>&lt;html&gt;
    &lt;body&gt;
      &lt;div id="mainDiv"&gt;
         &lt;div id="divToRemove"&gt;&lt;/div&gt;
         &lt;div id="divToKeep"&gt;&lt;/div&gt;
         &lt;div class="divToRemove"&gt;&lt;/div&gt;
         &lt;div class="divToRemove"&gt;&lt;/div&gt;
      &lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>I want to remove the divs with ID or class named "divToRemove"
  and  then I want to select only the div called "mainDiv" (in a HtmlNode).</p>
  
  <p>The results should be:</p>
  
  <pre><code>   &lt;div id="mainDiv"&gt;
         &lt;div id="divToKeep"&gt;&lt;/div&gt;
     &lt;/div&gt;
  </code></pre>
  
  <p>How can i do that using Html Agility Pack?</p>
  
  <p>Thanks!</p>