The XML Schema Definition Tool and XML Serialization
The XML Schema Definition tool (XML Schema Definition Tool (Xsd.exe)) is installed along with the .NET Framework tools as part of the Windows® Software Development Kit (SDK). The tool is designed primarily for two purposes:
To generate either C# or Visual Basic class files that conform to a specific XML Schema definition language (XSD) schema. The tool takes an XML Schema as an argument and outputs a file that contains a number of classes that, when serialized with the XmlSerializer, conform to the schema. For information about how to use the tool to generate classes that conform to a specific schema, see How to: Use the XML Schema Definition Tool to Generate Classes and XML Schema Documents.
To generate an XML Schema document from a .dll file or .exe file. To see the schema of a set of files that you have either created or one that has been modified with attributes, pass the DLL or EXE as an argument to the tool to generate the XML schema. For information about how to use the tool to generate an XML Schema Document from a set of classes, see How to: Use the XML Schema Definition Tool to Generate Classes and XML Schema Documents.