Name
Xsd.exe — XML Schema Definition Tool
Synopsis
xsd.exeassembly.[dll|exe] [/outputdir:dir] [/type:type1[/type:type2...]] xsd.exeinstance.xml [/outputdir:dir] xsd.exeschema.xdr [/outputdir:dir] xsd.exeschema.xsd (/classes|/dataset) [/e] [/l] [/n] [/o] [/uri]
Description
Generates XML schemas from XDR, XML files, or class information. Can also generate DataSet or class information from a schema.
Examples
xsd foo.xdr xsd bar.dll
Arguments
-
assembly.[dll|exe] The name of a .NET assembly.
Xsd.exeinfers a schema from the assembly’s types and generates an.xsdfile.-
instance.xml The name of an XML document.
Xsd.exeinfers a schema from it and generates an.xsdfile.-
schema.xdr The name of an XML Data Reduced schema document.
Xsd.execonverts it to an.xsdfile.-
schema.xsd The name of an XML Schema Description Language schema document.
Xsd.exegenerates either a dataset (/dataset) or source code (/classes) for types that correspond to the schema.
Options
-
/c[lasses] Generates types that correspond to an XML schema.
-
/d[ataset] Generates a subclass of DataSet that corresponds to an XML schema.
-
/e[lement]:element Specifies a particular element in the XML schema. To specify multiple elements, use this option more than once. By default,
Xsd.exeprocesses all elements.-
/l[anguage]:language Specifies the language for the generated code. Valid options are:
CS(C#),VB(Visual Basic .NET), andJS(JScript.NET).-
/n[amespace]:namespace Specifies the namespace for the generated types.
-
/nologo ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access