What is xsd.exe?

Xsd.exe (or XML Schema Definition Tool) is a code generation tool that is part of the Windows SDK and is packaged with Visual Studio.  It allows various forms of code generation relating to XML and XML schema for both C# and Visual Studio.NET.  It can create an XML schema document from XML; sample XML from an XML schema, XML schema from a .NET assembly, or C# and Visual Basic from XML schema.  It is this last code generation capability that is valuable to us as we can generate C# and Visual Basic XML serialization code from the NIEM IEPD schemas.

Source: IJIS Technical Advisory Committee NIEM FAQ Series "NIEM IEPD XML Code Generation in C# with .NET 3.5"; see article ID# 547