title: Is there a tool to generate simple c# classes from an xsd?
body: <p>I have an xsd (greatly simplified for this post): </p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;xs:schema id="serviceResponse" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"&gt;
    &lt;xs:element name="serviceResponse" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"&gt;
      &lt;xs:complexType&gt;
        &lt;xs:choice minOccurs="0" maxOccurs="unbounded"&gt;
          &lt;xs:element name="searchResults"&gt;
            &lt;xs:complexType&gt;
              &lt;xs:sequence&gt;
                &lt;xs:element name="numberOfResults" type="xs:string" minOccurs="0" /&gt;
                &lt;xs:element name="raceList" minOccurs="0" maxOccurs="unbounded"&gt;
                  &lt;xs:complexType&gt;
                    &lt;xs:sequence&gt;
                      &lt;xs:element name="race" minOccurs="0" maxOccurs="unbounded"&gt;
                        &lt;xs:complexType&gt;
                          &lt;xs:sequence&gt;
                            &lt;xs:element name="id" type="xs:string" minOccurs="0" /&gt;
                            &lt;xs:element name="title" type="xs:string" minOccurs="0" /&gt;
                          &lt;/xs:sequence&gt;
                        &lt;/xs:complexType&gt;
                      &lt;/xs:element&gt;
                    &lt;/xs:sequence&gt;
                  &lt;/xs:complexType&gt;
                &lt;/xs:element&gt;
              &lt;/xs:sequence&gt;
            &lt;/xs:complexType&gt;
          &lt;/xs:element&gt;
        &lt;/xs:choice&gt;
      &lt;/xs:complexType&gt;
    &lt;/xs:element&gt;
  &lt;/xs:schema&gt;
  </code></pre>
  
  <p>I need simple c# classes:</p>
  
  <pre><code>public class serviceResponse
  {
      public searchResults SearchResults { get; set; }
  }
  
  public class searchResults
  {
      public string numberOfResults { get; set; }
      public List&lt;race&gt; raceList { get; set; }
  }
  
  public class race
  {
      public string id { get; set; }
      public string title { get; set; }   
  }
  </code></pre>
  
  <p>I was told xsd.exe or even csxsd.exe can do this, but don't see the flags that just get simple usable classes out of those. I just need super simple classes that can be populated with xml from restful api calls. I do not want to hand code 150+ differenty object types. Is there a tool that does this?</p>