title: Search an XmlNodeList for a specific string
body: <p>Is there a way I can reduce the foreach code below so I don't have to use a foreach loop to iterate over the xml nodes?</p>
  
  <p>I just want to look and see if an item is present in the xml file </p>
  
  <pre><code>XmlDocument doc = new XmlDocument();
  doc.Load("MyList.xml");
  
  XmlNodeList list = doc.SelectNodes("/MyList/item");
  foreach( XmlNode item in list)
  {
      string name = item.InnerText;
      if(name == "blah blah")
      {
         //do something
      }
  }
  </code></pre>
  
  <p>The above works but I just want a smaller cooler way of doing it :)</p>