title: Problem in reading XML node with unknown root/parent nodes
body: <p>I have been trying to read an xml file. I have to extract value of nodes "Date" and "Name", but the problem is, they might appear at any level in XML hierarchy.</p>
  
  <p>So when I try with this code,</p>
  
  <pre><code>        XmlDocument doc = new XmlDocument();
          doc.Load("test1.xml");
          XmlElement root = doc.DocumentElement;
          XmlNodeList nodes = root.SelectNodes("//*");
          string date;
          string name;
  
          foreach (XmlNode node in nodes)
          {
                      date = node["date"].InnerText;
                      name = node["name"].InnerText;
          }
  </code></pre>
  
  <p>and the XML file is ::</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;root&gt;
  &lt;child&gt;
    &lt;name&gt;Aravind&lt;/name&gt;
    &lt;date&gt;12/03/2000&lt;/date&gt;
  &lt;/child&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>the above code errors out, as <code>&lt;name&gt;</code> and <code>&lt;date&gt;</code> are not immediate child Elements of <strong>root</strong>. <br>
  is it possible to assume that parent/root nodes are unknown and just with the name of the nodes, copy the values ??</p>