title: Reading dynamic elements from the xml file using c#`
body: <p>I want to read the xml elements dynamically (I mean without hard-coding the element name) from the xml file. I am not able to use the XmlReader.ReadToDescendant method as it expects a Local Name which in my case varies. For example in this case I need to read elements A, B, C, D &amp; etc...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;test Version="2010" xmlns="http://test.org/2010/values"&gt;
  &lt;A&gt;
      &lt;Data&gt;
       &lt;Somedata&gt;&lt;/Somedata&gt;
      &lt;/Data&gt;
      &lt;Rows&gt;
        &lt;Row&gt;&lt;/Row&gt;
        &lt;Row&gt;&lt;/Row&gt;
      &lt;/Rows&gt;
  &lt;/A&gt;
  &lt;B&gt;
      &lt;Data&gt;
       &lt;Somedata&gt;&lt;/Somedata&gt;
      &lt;/Data&gt;
      &lt;Rows&gt;
        &lt;Row&gt;&lt;/Row&gt;
        &lt;Row&gt;&lt;/Row&gt;
      &lt;/Rows&gt;
  &lt;/B&gt;
  &lt;C&gt;
      &lt;Data&gt;
       &lt;Somedata&gt;&lt;/Somedata&gt;
      &lt;/Data&gt;
      &lt;Rows&gt;
        &lt;Row&gt;&lt;/Row&gt;
        &lt;Row&gt;&lt;/Row&gt;
      &lt;/Rows&gt;
  &lt;/C&gt;
  &lt;D&gt;
      &lt;Data&gt;
       &lt;Somedata&gt;&lt;/Somedata&gt;
      &lt;/Data&gt;
      &lt;Rows&gt;
        &lt;Row&gt;&lt;/Row&gt;
        &lt;Row&gt;&lt;/Row&gt;
      &lt;/Rows&gt;
  &lt;/D&gt;
  &lt;/test&gt;
  </code></pre>
  
  <p>Please help me.</p>