Skip to content

Latest commit

 

History

History
31 lines (25 loc) · 2.49 KB

the-xml-schema-definition-tool-and-xml-serialization.md

File metadata and controls

31 lines (25 loc) · 2.49 KB
title description ms.date helpviewer_keywords ms.assetid
The XML Schema Definition Tool and XML Serialization
The XML Schema Definition tool generates C# or Visual Basic class files for an XSD schema and generates an XML schema from a library or executable file.
03/30/2017
Xsd.exe
XML serialization, XML Schema Definition tool
XML Schema Definition tool
serialization, XML Schema Definition tool
3c03f855-f931-47ff-bbc6-50c0367a16e4

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 xref:System.Xml.Serialization.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 using the tool, see XML Schema Definition Tool (Xsd.exe).

See also