title: Iteration on XML tags in C#
body: <p>How would code an iteration to loop through the parent tag on a xml file as below:</p>
  
  <pre><code>&lt;collection&gt;
       &lt;parent&gt;
          &lt;child1&gt;DHL&lt;/child1&gt;
          &lt;child2&gt;9000000131&lt;/child2&gt;
          &lt;child3&gt;ISS Gjøvik&lt;/child13&gt;
          &lt;child4&gt;ISS Gjøvik&lt;/child4&gt;
          &lt;child5&gt;ISS Gjøvik&lt;/child5&gt;
          &lt;child6&gt;9999000000136&lt;/child6&gt;
        &lt;/parent&gt;
         &lt;parent&gt;
          &lt;child1&gt;DHL&lt;/child1&gt;
          &lt;child2&gt;9000000132&lt;/child2&gt;
          &lt;child3&gt;ISS Gjøvik&lt;/child13&gt;
          &lt;child4&gt;ISS Gjøvik&lt;/child4&gt;
          &lt;child5&gt;ISS Gjøvik&lt;/child5&gt;
          &lt;child6&gt;9999000000136&lt;/child6&gt;
        &lt;/parent&gt;
        &lt;parent&gt;
          &lt;child1&gt;DHL&lt;/child1&gt;
          &lt;child2&gt;9000000134&lt;/child2&gt;
          &lt;child3&gt;ISS Gjøvik&lt;/child13&gt;
          &lt;child4&gt;ISS Gjøvik&lt;/child4&gt;
          &lt;child5&gt;ISS Gjøvik&lt;/child5&gt;
          &lt;child6&gt;9999000000136&lt;/child6&gt;
        &lt;/parent&gt;
  &lt;/collection&gt;
  </code></pre>
  
  <p>I need to insert the value of child1 as the primary key into the DB.</p>