title: How to print the nodes from XMLNodeList
body: <p>I am new to C# programming. I am trying to parse an XML document and print the values on console. My program is compiling without errors but I am not getting the desired result.</p>
  
  <p>Here is the Code.</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  doc.Load("C:\\Users\\hsyed\\Documents\\XMLParser\\Example.xml");
  XmlNamespaceManager nsmgr = new XmlNamespaceManager(doc.NameTable);
  nsmgr.AddNamespace("ab", "Identifier");
  XmlNodeList node = doc.SelectNodes("//root/ab:Identity/Refrences/Reference/Value/text()", nsmgr);
  
  String s= node.ToString();
  System.Console.WriteLine(s);
  
  Console.Read();
  </code></pre>
  
  <p>The XML File </p>
  
  <p>
      </p>
  
  <pre><code>    &lt;Attributes&gt;
  
          &lt;Attribute Name="StudentFirstName" Tag="B"/&gt;
  
      &lt;/Attributes&gt;
  &lt;/Metadata&gt;
  &lt;Identities&gt;
  &lt;Identity Identifier="00002C8DGPDDTZ5D" CDate="2013-02-07"&gt;
      &lt;References&gt;
          &lt;Reference&gt;
              &lt;Value&gt;A^S2513.268898|B^JOHN&lt;/Value&gt;
              &lt;Traces/&gt;
          &lt;/Reference&gt;
          &lt;Reference&gt;
              &lt;Value&gt;A^S2613.269022|B^JOHN&lt;/Value&gt;
              &lt;Traces/&gt;
          &lt;/Reference&gt;
      &lt;/References&gt;
  &lt;/Identity&gt;
  &lt;Identity Identifier="000388MRUO7TRSBH" CDate="2013-02-07"&gt;
      &lt;References&gt;
          &lt;Reference&gt;
              &lt;Value&gt;A^S2513.285402|B^Doe&lt;/Value&gt;
              &lt;Traces/&gt;
          &lt;/Reference&gt;
          &lt;Reference&gt;
              &lt;Value&gt;A^S2613.285476|B^Doe&lt;/Value&gt;
              &lt;Traces/&gt;
          &lt;/Reference&gt;
      &lt;/References&gt;
  &lt;/Identity&gt;
  </code></pre>
  
  <p>I want to get the information in the Value field.</p>
  
  <p>Thanks.</p>