title: LINQ to XML. Enumeration yielded no results
body: <p>I'm having trouble populating an object from an XML file.  I've copied an example I've found almost exactly, with variable names changed, but I keep getting the &quot;Enumeration yielded no results&quot; exception.</p>
  <p>Here is my code:</p>
  <pre><code>    Dim element As XElement = XElement.Load(path)
  
      Dim itemProps = From p In element...&lt;Property&gt; _
                  Where p.&lt;LanguageCode&gt;.Value = &quot;en_us&quot; _
                  Select p.&lt;Title&gt;.Value, p.&lt;Description&gt;.Value
  </code></pre>
  <p><strong>Using breakpoints, I have confirmed that the 'element' variable is being properly populated using the XElement.Load(path) method.</strong></p>
  <p>Here is the XML file that is being accessed:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot; standalone=&quot;yes&quot;?&gt;
  &lt;Items&gt;
    &lt;Item ItemID=&quot;1&quot;&gt;
      &lt;Property ItemPropertyID=&quot;1&quot;&gt;
        &lt;Title&gt;Title1&lt;/Title&gt;
        &lt;Description&gt;Description1&lt;/Description&gt;
        &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;
      &lt;/Property&gt;
    &lt;/Item&gt;
    &lt;Item ItemID=&quot;2&quot;&gt;
      &lt;Property ItemPropertyID=&quot;2&quot;&gt;
        &lt;Title&gt;Title2&lt;/Title&gt;
        &lt;Description&gt;Description2&lt;/Description&gt;
        &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;
      &lt;/Property&gt;
    &lt;/Item&gt;
    &lt;Item ItemID=&quot;3&quot;&gt;
      &lt;Property ItemPropertyID=&quot;3&quot;&gt;
        &lt;Title&gt;Title3&lt;/Title&gt;
        &lt;Description&gt;Description3&lt;/Description&gt;
        &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;
      &lt;/Property&gt;
    &lt;/Item&gt;
    &lt;Item ItemID=&quot;4&quot;&gt;
      &lt;Property ItemPropertyID=&quot;4&quot;&gt;
        &lt;Title&gt;Title4&lt;/Title&gt;
        &lt;Description&gt;Description4&lt;/Description&gt;
        &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;
      &lt;/Property&gt;
    &lt;/Item&gt;
    &lt;Item ItemID=&quot;5&quot;&gt;
      &lt;Property ItemPropertyID=&quot;5&quot;&gt;
        &lt;Title&gt;Title5&lt;/Title&gt;
        &lt;Description&gt;Description5&lt;/Description&gt;
        &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;
      &lt;/Property&gt;
    &lt;/Item&gt;
    &lt;Item ItemID=&quot;6&quot;&gt;
      &lt;Property ItemPropertyID=&quot;6&quot;&gt;
        &lt;Title&gt;Title6&lt;/Title&gt;
        &lt;Description&gt;Description6&lt;/Description&gt;
        &lt;LanguageCode&gt;en-us&lt;/LanguageCode&gt;
      &lt;/Property&gt;
    &lt;/Item&gt;
  &lt;/Items&gt;
  </code></pre>
  <p>Essentially, the XML query is supposed to return the title and the description for every Property which has an element called Language Code, which is equal to &quot;en-us&quot;.  I have a feeling that my problem lies in my XML code.</p>