title: Parse Xml attributes via XmlDocument
body: <p>Good day!</p>
  
  <p>I try to parse Xml document:</p>
  
  <p>structure:</p>
  
  <pre><code>&lt;root&gt;
    &lt;SelectedConfig name="configuration1"/&gt;
      &lt;config name="configuration1"&gt;
       &lt;Column Id="0"  name="111"/&gt;
    ...
   &lt;/root&gt;
  </code></pre>
  
  <p>I try to parse it like this:</p>
  
  <pre><code> XmlNode configNameNode = _doc.SelectSingleNode("//SelectedConfig");
  
          if (configNameNode != null)
          {
              string configName = configNameNode.Attributes["name"].Value; 
  
              var config = _doc.SelectNodes("//config");
  
              XmlNodeList columnNodes = _doc.SelectNodes("//config/Column");
  
              foreach (XmlNode node in columnNodes)
              {
                  var id = node.Attributes["Id"].Value;
                  var name = node.Attributes["name"].Value;
  
                  Tuple&lt;string, String&gt; numberOfColumnToColumnName = new Tuple&lt;string, string&gt;(id, name);
                  numberOfColumnToColumnNameTupleColl.Add(numberOfColumnToColumnName);
  
              }
          }
  </code></pre>
  
  <p>But, if i add:</p>
  
  <pre><code>&lt;config name="configuration2"&gt;
  </code></pre>
  
  <p>I get N*2 nodes of //config/column.</p>
  
  <p>How to select only one set of xml nodes- from configuration1 or 2?</p>
  
  <p>Thank you!</p>