title: How to Select XML Nodes with XML Namespaces with C#
body: <p>I have to analyze a XML doc with special namespace using C#, and I get some idea from <a href="https://stackoverflow.com/questions/4633127/how-to-select-xml-nodes-with-xml-namespaces-from-an-xmldocument">this post</a>. But my code fail to get the expected XML node, because the XML structure is very special...</p>
  
  <p>There is a namespace in root node in XML</p>
  
  <pre><code>&lt;MDOC xmlns="urn:schemas-microsoft-com/PSS/PSS_Survey01"&gt;
  </code></pre>
  
  <p>Here is my code to get this root node</p>
  
  <pre><code>        XmlDocument doc = new XmlDocument();
          doc.Load(path);
  
          XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
          nsmgr.AddNamespace("urn", "schemas-microsoft-com/PSS/PSS_Survey01");
  
          XmlNode root = doc.SelectSingleNode("MDOC", nsmgr);
  </code></pre>
  
  <p>Help me!</p>