1xsd(1) xsd(1)
2
3
4
6 xsd - Mono's utility for generating schema or class files
7
9 xsd <schema.xsd> /classes [options]
10
11 xsd <schema.xsd> /dataset [options]
12
13 xsd <assembly>.dll|<assembly>.exe [options]
14
15 xsd <instance.xml> [<instance.xml> ...] [options]
16
18 xsd is a tool for intended to complement the XML serialization support
19 of Mono. It can do the following tasks:
20
21 Generate serializable classes
22 From a given XML schema, generate a class that can be used to
23 read and write xml documents that conform that schema (/classes
24 option).
25
26 Generate typed datasets
27 From a given XML schema, generate a typed DataSet class that can
28 be used to read and write xml documents that conform that schema
29 (/dataset option).
30
31 Generate XML schemas
32 From a given assembly and an optional type name, generate an XML
33 schema that can be used to validate the xml documents that can
34 be obtained by serializing objects of that type. If no type is
35 provided, xsd generates a schema for all types in the assembly.
36 When specifying the assembly name do not include the file exten‐
37 sion (.dll or .exe). xsd will look for the assembly using the
38 standard assembly loading rules.
39
40 Infer XML schemas
41 From a given set of XML documents, infer the XML schema that can
42 be used to validate those documents.
43
44
46 The following options are available:
47
48 /element:name /e:name
49 Specifies the name of the XML schema element for which a class
50 or a dataset has to be generated.
51
52
53 /namespace:name /n:name
54 Specifies the namespace of the XML schema element for
55 which a class or a dataset has to be generated.
56
57 /language:name /l:name
58 Specifies the programming language to use for the gener‐
59 ated code. The only supported languages are CS (C#) and
60 VB (Visual Basic.NET).
61
62 /generator:type,assembly /g:type,assembly
63 Indicates xsd.exe to use custom CodeDomProvider to gener‐
64 ate code. The type name must be full name. Assembly name
65 is a local file name that is going to be loaded. The
66 specified Type must have the default constructor.
67
68 /outputdir:path /o:path
69 Specifies the directory where to generate the code or
70 schemas.
71
72 /type:name /t:name
73 Specifies the full name of the type (including namespace)
74 for which to generate the XML schema.
75
76 /help /h
77 Show usage help.
78
80 Lluis Sanchez Gual (lluis@ximian.com)
81 Atsushi Enomoto (atsushi@ximian.com)
82
84 xsd is released under the terms of the GNU GPL.
85
87 disco(1), soapsuds(1), mono(1), mcs(1), wsdl(1)
88
89
90
91 xsd(1)