title: Mapping XML data to class in C#
body: <p>If I have an external XML feed and an internal class, what is the best way to automatically read the feed and map the data to new instances of the class?</p>
  
  <p>So if the xml feed is like</p>
  
  <pre><code>&lt;people&gt;
     &lt;person&gt;
        &lt;name&gt;Bob&lt;/name&gt;
     &lt;/person&gt;
      &lt;person&gt;
        &lt;name&gt;Bill&lt;/name&gt;
     &lt;/person&gt;
  &lt;/people&gt;
  </code></pre>
  
  <p>And my class Person has a property Name. Right now I am stepping through with XmlReader but this seems inefficient</p>