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 .NET Framework 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.
For more information about this tool and others, see .NET Framework Tools. For information about the tool's options, see XML Schema Definition Tool (Xsd.exe). For more information about the schema constructs supported by the tool, see XML Schema Binding Support in the .NET Framework.
See Also
Tasks
How to: Serialize an Object
How to: Deserialize an Object
How to: Use the XML Schema Definition Tool to Generate Classes and XML Schema Documents
Reference
DataSet
XML Schema Definition Tool (Xsd.exe)
XmlSerializer
XML Schema Binding Support in the .NET Framework