title: How to get data from an XML File in C# using XMLDocument class?
body: <p>Good Evening All, and happy weekend!.</p>
  
  <p>I have been trying all day to understand how to parse my simple XML file so I can understand it enough to write a personal project I want to work on.</p>
  
  <p>I have been reading articles on this site and others but cannot get past where I am :(</p>
  
  <p>My XML Document is ...</p>
  
  <pre><code>&lt;XML&gt;
    &lt;User&gt;
      &lt;ID&gt;123456789&lt;/ID&gt;
      &lt;Device&gt;My PC&lt;/Device&gt;
    &lt;/User&gt;
    &lt;History&gt;
      &lt;CreationTime&gt;27 June 2013&lt;/CreationTime&gt;
      &lt;UpdatedTime&gt;29 June 2013&lt;/UpdatedTime&gt;
      &lt;LastUsage&gt;30 June 2013&lt;/LastUsage&gt;
      &lt;UsageCount&gt;103&lt;/UsageCount&gt;
    &lt;/History&gt;
    &lt;Configuration&gt;
      &lt;Name&gt;Test Item&lt;/Name&gt;
      &lt;Details&gt;READ ME&lt;/Details&gt;
      &lt;Enabled&gt;true&lt;/Enabled&gt;   
    &lt;/Configuration&gt;
  &lt;/XML&gt;
  </code></pre>
  
  <p>I am trying to get the value in the details element (READ ME). Below is my code</p>
  
  <pre><code>// Start Logging Progress
  Console.WriteLine("Test Application - XML Parsing and Creating");
  Console.ReadKey();
  
  // Load XML Document
  XmlDocument MyDoc = new XmlDocument();  MyDoc.Load(@"E:\MyXML.XML");
  
  // Select Node
  XmlNode MyNode = MyDoc.SelectSingleNode("XML/Configuration/Details");
  
  // Output Node Value
  Console.WriteLine(String.Concat("Details: ", MyNode.Value));
  
  // Pause
  Console.ReadKey();
  </code></pre>
  
  <p>My console application is running and outputing "Target: " but not giving me the detail within the element.</p>
  
  <p>Can somebody see why this is happening, and perhaps give me advice if I am completely off the wheel? I have no previous knowledge in reading XML files; hence where I am now :)</p>
  
  <p>Thanks! Tom</p>