title: All the values present are not getting added to the dictionary in c#
body: <p>All the values present are not getting added to the dictionary in c#
  the following is the code snippet so far :</p>
  
  <pre><code> XmlNodeList Bugs_filter = Bugs.SelectNodes("/criteria/includeFilterSets/filterSet/filter");
      if (Bugs_filter != null)
      {
  
          foreach (XmlNode BNode in Bugs_filter)
          {
              string data = BNode.SelectSingleNode("/criteria/includeFilterSets/filterSet/filter/filterName").InnerText;
              string aggregate = BNode.SelectSingleNode("/criteria/includeFilterSets/filterSet/filter/value").InnerText;
  
              {   
                   Dict.Add(data,aggregate);
              }
          }
      }
  </code></pre>
  
  <p>There are total 3 values present in the 'Bugs_Filter' whereas when it comes in loop second time it picks up the first value only.Please suggest what i am doing wrong.</p>
  
  <p>Please refer to the XML from which i am extracting the values :</p>
  
  <pre><code> &lt;?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?&gt;&lt;criteria&gt;&lt;includeFilterSets&gt;&lt;filterSet&gt;&lt;filter&gt;&lt;filterId&gt;42&lt;/filterId&gt;
      &lt;filterName&gt;PRODUCT_ID&lt;/filterName&gt;&lt;operator&gt;&lt;id&gt;1&lt;/id&gt;&lt;name&gt;Equals&lt;/name&gt;&lt;/operator&gt;&lt;value&gt;1113&lt;/value&gt;&lt;/filter&gt;&lt;filter&gt;&lt;filterId&gt;41&lt;/filterId&gt;
      &lt;filterName&gt;FAMILY_ID&lt;/filterName&gt;&lt;operator&gt;&lt;id&gt;1&lt;/id&gt;&lt;name&gt;Equals&lt;/name&gt;&lt;/operator&gt;&lt;value&gt;ESG&lt;/value&gt;&lt;/filter&gt;&lt;filter&gt;&lt;filterId&gt;3&lt;/filterId&gt;&lt;filterName&gt;VERSION_NAME&lt;/filterName&gt;
      &lt;operator&gt;&lt;id&gt;1&lt;/id&gt;&lt;name&gt;Equals&lt;/name&gt;&lt;/operator&gt;&lt;value&gt;4.5&lt;/value&gt;&lt;/filter&gt;&lt;/filterSet&gt;&lt;/includeFilterSets&gt;&lt;excludeFilterSets/&gt;&lt;ordering/&gt;
      &lt;bugGroupSearchMode&gt;0&lt;/bugGroupSearchMode&gt;&lt;caseSensitive&gt;true&lt;/caseSensitive&gt;&lt;entityToSearch&gt;&lt;id&gt;1&lt;/id&gt;&lt;name&gt;BUG&lt;/name&gt;&lt;/entityToSearch&gt;&lt;/criteria&gt;
  </code></pre>
  
  <p>Please note that i am extracting the PRODUCT_ID,FAMILY_ID and VERSION_NAME.</p>