title: C# Linq over XML => Lambda Expression
body: <p>I have an xml document which consists of a number of the following:  </p>
  
  <pre><code>- &lt;LabelFieldBO&gt;
    &lt;Height&gt;23&lt;/Height&gt; 
    &lt;Width&gt;100&lt;/Width&gt; 
    &lt;Top&gt;32&lt;/Top&gt; 
    &lt;Left&gt;128&lt;/Left&gt; 
    &lt;FieldName&gt;field4&lt;/FieldName&gt; 
    &lt;Text&gt;aoi_name&lt;/Text&gt; 
    &lt;DataColumn&gt;aoi_name&lt;/DataColumn&gt; 
    &lt;FontFamily&gt;Arial&lt;/FontFamily&gt; 
    &lt;FontStyle&gt;Regular&lt;/FontStyle&gt; 
    &lt;FontSize&gt;8.25&lt;/FontSize&gt; 
    &lt;Rotation&gt;0&lt;/Rotation&gt; 
    &lt;LabelName /&gt; 
    &lt;LabelHeight&gt;0&lt;/LabelHeight&gt; 
    &lt;LabelWidth&gt;0&lt;/LabelWidth&gt; 
    &lt;BarCoded&gt;false&lt;/BarCoded&gt; 
    &lt;/LabelFieldBO&gt;
  </code></pre>
  
  <p>I have figured out how to find the element where LabelName = 'container'.  But I am not well versed with lambda expressions and would like to know how to access the information within my LINQ results.  Lambda expressions may not be the way to go either.  I am open to any suggestions.</p>
  
  <pre><code>var dimensions = from field in xml.Elements("LabelFieldBO")
                               where field.Element("LabelName").Value == "container"
                               select field;
  </code></pre>
  
  <p>Thanks.</p>
  
  <p>EDIT: What I am trying to figure out is how to get the LabelHeight and LabelWidth out of the XML where LabelName = "container"</p>