title: Reading a *.CSPROJ file in C#
body: <p>I am attempting to write some code to read in a *.CSPROJ file using C#</p>
  
  <p>The code I have is as follows </p>
  
  <pre><code>   XmlDocument xmldoc = new XmlDocument();
     xmldoc.Load(fullPathName);
  
     XmlNamespaceManager mgr = new XmlNamespaceManager(xmldoc.NameTable);
     //mgr.AddNamespace("x", "http://schemas.microsoft.com/developer/msbuild/2003");
  
     foreach (XmlNode item in xmldoc.SelectNodes("//EmbeddedResource") )
     {
        string test = item.InnerText.ToString();
     }
  </code></pre>
  
  <p>using the debugger I can see that 'fullPathName" has the correct value and the xmldoc once loaded has the correct contents.</p>
  
  <p>The xmldoc does not have any "Nodes" though, as if the contents are not recognised as XML.</p>
  
  <p>Using a XML editor the *.csproj file validates an XML document.</p>
  
  <p>Where am I going wrong?</p>