Skip to Main Content
C# in a Nutshell, Second Edition
book

C# in a Nutshell, Second Edition

by Peter Drayton, Ben Albahari, Ted Neward
August 2003
Intermediate to advanced content levelIntermediate to advanced
928 pages
32h 1m
English
O'Reilly Media, Inc.
Content preview from C# in a Nutshell, Second Edition

Name

Xsd.exe — XML Schema Definition Tool

Synopsis

xsd.exe assembly.[dll|exe] [/outputdir:dir] [/type:type1 [/type:type2 ...]]
xsd.exe instance.xml [/outputdir:dir]
xsd.exe schema.xdr [/outputdir:dir]
xsd.exe schema.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.exe infers a schema from the assembly’s types and generates an .xsd file.

instance .xml

The name of an XML document. Xsd.exe infers a schema from it and generates an .xsd file.

schema .xdr

The name of an XML Data Reduced schema document. Xsd.exe converts it to an .xsd file.

schema .xsd

The name of an XML Schema Description Language schema document. Xsd.exe generates 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.exe processes all elements.

/l[anguage]:language

Specifies the language for the generated code. Valid options are CS (C#), VB (Visual Basic .NET), JS (JScript.NET), and VJS (J#).

/n[amespace]:namespace

Specifies the namespace for the generated types. ...

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.
Start your free trial

You might also like

C# in a Nutshell

C# in a Nutshell

Ben Albahari, Ted Neward, Peter Drayton
C# 7.0 in a Nutshell

C# 7.0 in a Nutshell

Joseph Albahari, Ben Albahari
C# Cookbook, 2nd Edition

C# Cookbook, 2nd Edition

Jay Hilyard, Stephen Teilhet
C# Cookbook

C# Cookbook

Joe Mayo

Publisher Resources

ISBN: 0596005261Catalog PageErrata