title: Loop through all nodes in xml and save path & value of nodes
body: <p>I have the following xml (see picture) with multiple level of child nodes.
  I want to get value and full path of each node.
  I have tried to iterate through all the nodes but the grand child nodes are not comping in the loop. If I run a loop within loop then I get all the nodes but I don't feel it is the right way since some of child nodes too have grand children nodes and for those I will have to write another loop.
  Is there a easier way to get path and values of all nodes from an xml in c#?</p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  doc.Load(Server.MapPath(@"~/XmlFiles/test_uwe.xml"));
  
  XmlNodeList elemList = doc.GetElementsByTagName("Page1");
  
  foreach (XmlNode node in elemList) 
  {
     //Loop goes here but doesn't catches grand child.
  }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/xYgM2.png" alt="Xml with multi level child nodes"></p>