title: How to use linq to map xml to a class?
body: <p>Say my xml looks like:</p>
  
  <pre><code>&lt;post&gt;
  &lt;title&gt;this is a title&lt;/title&gt;
  &lt;date&gt;2013/06/03&lt;/date&gt;
  &lt;message&gt;this is a message here&lt;/message&gt;
  &lt;/post&gt;
  </code></pre>
  
  <p>And I have a class like:</p>
  
  <pre><code>public class Post
  {
    public string Title {get;set;}
    public string Message {get;set;}
    public DateTime Date {get;set;}
  }
  </code></pre>
  
  <p>I have an xml document object that has the xml.</p>
  
  <p>Now sure how to use linq to populate this.  Does linq handle nulls or bad xml (like say the 'message' node is missing?).</p>