title: Target specific Xml Node in c#
body: <p>As I said in the Title: I'm trying to delete a specific XML node(in c#).</p>
  
  <p>so I researched and found <a href="https://stackoverflow.com/questions/3229330/deleting-specific-node-in-xml">this</a>:</p>
  
  <pre><code>XmlDocument xmlDoc = new XmlDocument();
  XmlNode nodeToDelete = xmlDoc.SelectSingleNode("/root/XMLFileName[@ID="+nodeId+"]");
          if (nodeToDelete != null)
          {
              nodeToDelete.ParentNode.RemoveChild(nodeToDelete);
          }
          xmlDoc.Save("XMLFileName.xml")
  </code></pre>
  
  <p>I understand here that he's targeting a specific node ( in this case <code>"[@ID ="+nodeId+</code>)</p>
  
  <p>Ok, my question is can I do the same just in the opposite way, by that I mean if its not <code>nodeId</code> then delete it (just like the "!="-Operator in C#).</p>