title: Looping through XML records using xElement
body: <p>I have the following XML</p>
  
  <pre><code>     &lt;xml&gt;
           &lt;version&gt;1.0&lt;/version&gt;
           &lt;products&gt;
                &lt;product&gt;
                      &lt;name&gt;Product 1&lt;/ProductName&gt;
                      &lt;id&gt;1&lt;/ProductId&gt;
                &lt;/product&gt;
                &lt;product&gt;
                      &lt;name&gt;Product 2&lt;/ProductName&gt;
                      &lt;id&gt;2&lt;/ProductId&gt;
                &lt;/product&gt;
                &lt;product&gt;
                      &lt;name&gt;Product 3&lt;/ProductName&gt;
                      &lt;id&gt;3&lt;/ProductId&gt;
                &lt;/product&gt;
            &lt;/products&gt;
        &lt;/xml&gt;
  </code></pre>
  
  <p>And i have the following code for looping through the products</p>
  
  <pre><code>   Dim xelement As XElement = xelement.Load("aaa.xml")
     Dim products As IEnumerable(Of XElement) = xelement.Elements()
         For Each product In products
             Console.WriteLine(product.Elements("name").Value)
         Next product
  </code></pre>
  
  <p>but <code>product.Elements("name").Value</code> is giving error. What i am doing wrong here?</p>