title: Linq to XML Queries
body: <p>Let's just say I have an XML file that looks like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Customers&gt;
    &lt;Customer Name="Jason Voorhees" WeaponPurchased="Machette" SalePrice="499.90" /&gt;
    &lt;Customer Name="Michael Myers" WeaponPurchased="Kitchen Knife" SalePrice="96.75" /&gt;
  &lt;/Customers&gt;
  </code></pre>
  
  <p>Is it possible, with Linq, to do something like this:?</p>
  
  <pre><code>foreach customer in Customers select WeaponPurchased where Name equals "Jason Voorhees"
  </code></pre>
  
  <p>or:</p>
  
  <pre><code>foreach customer in Customers select customer
  label1.Text += "Name: " + customer.Name + Environment.NewLine + "WeaponPurchased: " + customer.WeaponPurchased;
  </code></pre>
  
  <p>I've seen this type of query before on MSDN, but the links in my favorites lead to the wrong page now, and I'm still trying to find these particular examples. Any help is much appreciated,</p>
  
  <p>Thank you</p>