title: how get the value of second child element in xml using XElement in c#
body: <p>I want to get the value of the second price element.we cant get last or first directly.but I don't have an idea how to get the second element directly.
  this is the xml....( I put only the needed part.my xml is valid)</p>
  
  <pre><code>&lt;Departure&gt;
      &lt;Date&gt;2016-09-24T00:00:00.0000000&lt;/Date&gt;
      &lt;Pricing&gt;
        &lt;Price&gt;
          &lt;Type&gt;ADT&lt;/Type&gt;
          &lt;Value&gt;299.00&lt;/Value&gt;
          &lt;Qty&gt;20&lt;/Qty&gt;
        &lt;/Price&gt;
        &lt;Price&gt;
          &lt;Type&gt;CHD&lt;/Type&gt;
          &lt;Value&gt;230.00&lt;/Value&gt;
          &lt;Qty&gt;5&lt;/Qty&gt;
        &lt;/Price&gt;
        &lt;Price&gt;
          &lt;Type&gt;INF&lt;/Type&gt;
          &lt;Value&gt;150.00&lt;/Value&gt;
          &lt;Qty&gt;5&lt;/Qty&gt;
        &lt;/Price&gt;
        &lt;Price&gt;
          &lt;Type&gt;FAM&lt;/Type&gt;
          &lt;Value&gt;0.00&lt;/Value&gt;
          &lt;Qty&gt;0&lt;/Qty&gt;
        &lt;/Price&gt;
        &lt;Price&gt;
          &lt;Type&gt;SEN&lt;/Type&gt;
          &lt;Value&gt;299.00&lt;/Value&gt;
          &lt;Qty&gt;20&lt;/Qty&gt;
        &lt;/Price&gt;
      &lt;/Pricing&gt;
    &lt;/Departure&gt;
    &lt;Departure&gt;
  </code></pre>
  
  <p>this is how I took the Last()</p>
  
  <pre><code> numberofDays = itm.Elements("Itinerary").Elements("ItineraryItem").Elements("EndDay").Last().Value,
  </code></pre>
  
  <p>like this I want to get the value of the second price element.(which the Type valud is "CHD")</p>