title: Get XML Element and it's children, and then the values of those children, by name
body: <p>I'm new to working with xml, and it's starting to get frustrating how difficult it is to do what I need, and everything I've found on google does not work.</p>
  
  <pre><code>&lt;Player&gt;
  &lt;Name&gt;PoopNUG&lt;/Name&gt;
  &lt;PlayerTag&gt;DANKMEMES&lt;/PlayerTag&gt;
  &lt;StartStats&gt;
    &lt;StartNum&gt;2&lt;/StartNum&gt;
    &lt;LastUpdated&gt;2015-07-24T22:21:30.5463885-05:00&lt;/LastUpdated&gt;
  &lt;/StartStats&gt;
  &lt;CurrentStats&gt;
    &lt;CurrentNum&gt;3&lt;/CurrentNum&gt;
    &lt;LastUpdated&gt;2015-07-24T22:21:30.5463885-05:00&lt;/LastUpdated&gt;
  &lt;/CurrentStats&gt;
  </code></pre>
  
  <p></p>
  
  <p>That's an example of xml I'm working with. There are many players in the file. I need to find a player by name, then access the children of that player, and do so by the elements name to work with.</p>
  
  <p>I can pull the correct element using:</p>
  
  <pre><code>IEnumerable&lt;XElement&gt; myPlayers =
              from myP in pElements.Elements("Player")
              where (string)myP.Element("Name") == pNameCombo.SelectedItem.ToString()
              select myP;
  </code></pre>
  
  <p>But after that I'm lost. I've tried probably 20 ways I've found on google and nothing works to get at the data in myPlayers. I can print the whole thing out but cannot access individual elements by name and the values of those elements.</p>
  
  <p>Any help?</p>