title: How to read multiple sub tags from xml limited which has recursive subtags?
body: <p>I have an xml which has multiple tags. Example:</p>
  
  <pre><code>&lt;code&gt;
      &lt;Value&gt;abc&lt;/value&gt;
      &lt;F&gt; T &lt;/F&gt;
      &lt;F&gt; A &lt;/F&gt;
      &lt;code1&gt;
          &lt;Value&gt;abc&lt;/value&gt;
          &lt;F&gt; T &lt;/F&gt;
      &lt;/code1&gt;
  &lt;/code&gt;
  </code></pre>
  
  <p>I want to read  tags associated only with the first code i.e first two tags. But my program is reading  tag for code1 as well.</p>
  
  <pre><code>foreach (var item in  element.Descendants("F"))
      {
          flNodeText = flNodeText + Convert.ToString(item.Nodes().First());
      }
  </code></pre>
  
  <p>Element is the whole xml mentioned above.
  How can i make it read only the first two tags. </p>
  
  <p>The number of tags can vary.</p>