title: Generating C# class from XML or XSD programatically
body: <p>I have a backend application in production and need to update XSD and C# classes continuously after every update of XMLs that the application is receiving. I'm trying to write a C# code which I can run and it will automatically update both XSD and C# classes so I don't have to overwrite it by myself (there comes many new or updated fields each month and the validation is needed).</p>
  <p>I managed to write a code that generates XSD from new XML but haven't seen any (open source) utility which would be able to create a C# class of objects based on one of these. I know I could use following:</p>
  <pre><code>Process.Start(&quot;....xsd.exe&quot;, params)
  </code></pre>
  <p>However, the solution should be generic for more users and the path of <em>xsd.exe</em> is not same for everyone.</p>
  <p>Have you got any suggestions on how should I deal with that?</p>