title: How to convert XML/JSON file to C# class?
body: <p>I have <strong>XML</strong> file like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0"?&gt;
  &lt;catalog&gt;
      &lt;book id="1" date="2012-02-01"&gt;
          &lt;title&gt;XML Developer's Guide&lt;/title&gt;
          &lt;price&gt;44.95&lt;/price&gt;
          &lt;description&gt;
              An in-depth look at creating applications
              with XML.
          &lt;/description&gt;
      &lt;/book&gt;
      &lt;book id="2" date="2013-10-16"&gt;
          &lt;author&gt;Mark Colsberg&lt;/author&gt;
          &lt;title&gt;Dolor sit amet&lt;/title&gt;
          &lt;price&gt;5.95&lt;/price&gt;
          &lt;description&gt;Lorem ipsum&lt;/description&gt;
      &lt;/book&gt;
  &lt;/catalog&gt;
  </code></pre>
  
  <p>How to quick convert it to C# classes to use access data by LINQ? 
  Do I have to write the class manually for any XML file case? 
  What about <strong>JSON</strong> format?</p>
  
  <p>Is the XSD the only solution?</p>