title: Using XElement to parse this XML into an array
body: <p>Let's say I have a Person class:</p>
  
  <pre><code>public class Person
  {
      public string Name { get; set; }
  }
  </code></pre>
  
  <p>How do I parse an XML file containing</p>
  
  <pre><code>&lt;person&gt;
      &lt;name&gt;a&lt;/name&gt;
  &lt;/person&gt;
  &lt;person&gt;
      &lt;name&gt;b&lt;/name&gt;
  &lt;/person&gt;
  </code></pre>
  
  <p>into an array of two <code>Person</code>s?</p>
  
  <p>This is a variant of this question: <a href="https://stackoverflow.com/questions/14740382/specific-parsing-xml-into-an-array">Specific parsing XML into an array</a></p>
  
  <p>The only difference is that there is no <code>&lt;people&gt;&lt;/people&gt;</code> surrounding the whole XML. The <code>&lt;person&gt;</code>s start immediately.</p>