title: How to get the xml node value in string
body: <p>I tried the below code to get the value of a particular node, but while loading the xml this exception is thrown:</p>
  
  <p><strong>Exception:</strong></p>
  
  <blockquote>
    <p>Data at the root level is invalid. Line 1, position 1.</p>
  </blockquote>
  
  <p><strong>XML</strong></p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;Data xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt; 
      &lt;Date&gt;11-07-2013&lt;/Date&gt; 
      &lt;Start_Time&gt;PM 01:37:11&lt;/Start_Time&gt; 
      &lt;End_Time&gt;PM 01:37:14&lt;/End_Time&gt; 
      &lt;Total_Time&gt;00:00:03&lt;/Total_Time&gt; 
      &lt;Interval_Time/&gt;
      &lt;Worked_Time&gt;00:00:03&lt;/Worked_Time&gt; 
      &lt;Short_Fall&gt;08:29:57&lt;/Short_Fall&gt; 
      &lt;Gain_Time&gt;00:00:00&lt;/Gain_Time&gt; 
  &lt;/Data&gt;
  </code></pre>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>XmlDocument xml = new XmlDocument();
  filePath = @"D:\Work_Time_Calculator\10-07-2013.xml";
  xml.LoadXml(filePath);  // Exception occurs here 
  XmlNode node = xml.SelectSingleNode("/Data[@*]/Short_Fall");
  string id = node["Short_Fall"].InnerText;
  </code></pre>
  
  <p><strong>Modified Code</strong></p>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>XmlDocument xml = new XmlDocument();
  filePath = @"D:\Work_Time_Calculator\10-07-2013.xml";
  xml.Load(filePath);  
  XmlNode node = xml.SelectSingleNode("/Data[@*]/Short_Fall");
  string id = node["Short_Fall"].InnerText; // Exception occurs here ("Object reference not set to an instance of an object.")
  </code></pre>