title: In XML, check if child nodes contain specific values with C#
body: <p>I'm getting back some XML and this is a section of it:</p>
  
  <pre><code>&lt;pair name="cf_item7" type="pair"&gt;
      &lt;pair name="cf_id" type="integer"&gt;34&lt;/pair&gt;
      &lt;pair name="value" type="string"&gt;0&lt;/pair&gt;
  &lt;/pair&gt;
  </code></pre>
  
  <p>Within the XML are a number of pairs. The section I need to check with always have a name beginning with cf_item* but this could be cf_item7, cf_item6, or any other number.</p>
  
  <p>I need to check within one of these cf_item* sections, and whether or not it has a cf_id, with the content equalling 34 (it will always be 34).</p>
  
  <p>If 34 exists, I need to check the next node (value), and check if it is equal to 0 or 1.</p>
  
  <p>If it equals 0, I need to output a message to the screen (web page).</p>
  
  <p>I've inherited the original code, which is written in C# .net - Can anyone help as it's not a language I'm familiar with?</p>
  
  <p>I started with this, based on some of the other code, but I'm unsure where to go next.</p>
  
  <pre><code>if (eleName.Contains("cf_item")) {
       XmlNode nodes = eleList[i].ChildNodes;
  }
  </code></pre>