Generate class from XSD

Discovered something nice today, Microsoft has built a small tool to convert a XSD file into a code class for you. This is very very useful when need to serialize some information and using a XSD file as a base. Simply open up the Visual Studio Command Prompt and navigate to the folder that contains the XSD file and enter the following:

xsd /classes /language:CS XSDFileNameHere.xsd

This will generate a delightful little .cs class file for you, ready to be used in your project!

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*