title: C#: WPF datagrid and xml file
body: <p>How can I read a xml file using a class and populate it on a datagrid? The datagrid should have validation capabilities?</p>
  
  <p>Xml file:</p>
  
  <pre><code>&lt;?xml version='1.0'?&gt;
  &lt;Data&gt;
   &lt;Book&gt;
   &lt;Author&gt;John Doe&lt;/Author&gt;
   &lt;Title&gt;Straight Track Demo&lt;/Title&gt;
   &lt;Version&gt;1&lt;/Version&gt;  
   &lt;/Book&gt;
  &lt;/Data&gt;
  </code></pre>