title: Removing a child node from XmlNode
body: <p>I am using <code>XPath</code> to select a report node. Now what I want to know here is how can I remove that node from the document without knowing which node's children they are? </p>
  
  <p>I tried calling <code>.RemoveChild</code> and it throws this error :</p>
  
  <blockquote>
    <p>The node to be removed is not a child of this node.</p>
  </blockquote>
  
  <p>This is my code for deleting a node :</p>
  
  <pre><code>var node = doc.SelectSingleNode("//report");
  doc.RemoveChild(node);
  </code></pre>