title: XmlDocument.SelectSingleNode returns null for root node
body: <p>I have several xml files whose postfix is not .xml, but .component
  Now I want to handle them in the c# program, but It seems that the c# cant even find the root element of these xml files</p>
  
  <pre><code>var doc = new XmlDocument();
  doc.Load(path); // MG: edited to Load based on comment
  XmlNode root = doc.SelectSingleNode("rootNodename");
  </code></pre>
  
  <p>It seems that the root is null, How should I cope with this?</p>