title: How to search through nested element values in XML
body: <p>I go through an xml file.This is a sample of it.</p>
  
  <pre><code>&lt;Cproducts&gt;
     &lt;ID&gt;id_one&lt;/ID&gt;
     &lt;Name&gt;name_one&lt;/Name&gt;
     &lt;Availability&gt;
          &lt;Departure&gt;
            &lt;Date&gt;2015-12-03T00:00:00.0000000+00:00&lt;/Date&gt;
          &lt;/Departure&gt;
          &lt;Departure&gt;
            &lt;Date&gt;2015-12-06T00:00:00.0000000+00:00&lt;/Date&gt;
          &lt;/Departure&gt;
      &lt;Availability&gt;
      &lt;ID&gt;id_two&lt;/ID&gt;
     &lt;Name&gt;name_two&lt;/Name&gt;
     &lt;Availability&gt;
          &lt;Departure&gt;
            &lt;Date&gt;2015-12-03T00:00:00.0000000+00:00&lt;/Date&gt;
          &lt;/Departure&gt;
          &lt;Departure&gt;
            &lt;Date&gt;2015-12-03T00:00:00.0000000+00:00&lt;/Date&gt;
          &lt;/Departure&gt;
          &lt;Departure&gt;
            &lt;Date&gt;2015-12-07T00:00:00.0000000+00:00&lt;/Date&gt;
          &lt;/Departure&gt;
          &lt;Departure&gt;
            &lt;Date&gt;2015-12-08T00:00:00.0000000+00:00&lt;/Date&gt;
          &lt;/Departure&gt;
      &lt;Availability&gt;
   &lt;/Cproducts&gt;   
  </code></pre>
  
  <p>I search through name directly like this.</p>
  
  <pre><code> var getneededData = rootele.Elements("CruiseProduct")
                                  .Where(l =&gt; l.Element("Name").Value == "some value");
  </code></pre>
  
  <p>then <code>getneededData</code> gives only the data where <code>Name == "some value"</code>. I want to go through the dates also where <code>Date ="some date"</code>. how can I do that directly like for <code>Name</code>?</p>