Pages

Tuesday, February 5, 2013

How to generate .NET Classes from XSD file



Most of the time when we are working with web services, we have to generate .NET classes from XSD schema file to start with coding. Microsoft provides xsd.exe tool in SDK for generating classes but I personally feel it’s not BEST tool to start with, because sometime xsd.exe tool is generating unnecessary classes.

To overcome this situation we can do two things –
1) change schema file respectively
2) change generated .NET classes to satisfy requirements.

Here is very good link which talks about different options for generating classes from XSD :

No comments:

Post a Comment