Skip to content

Commit 6f1ff0c

Browse files
Provide xsd tool example with /classes option (dotnet#42685)
1 parent 38ceb66 commit 6f1ff0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docs/standard/serialization/xml-schema-def-tool-gen.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ _C:\\Program Files (x86)\\Microsoft SDKs\\Windows\\{version}\\bin\\NETFX {versio
2323
2. Pass the XML Schema as an argument to the XML Schema Definition tool, which creates a set of classes that are precisely matched to the XML Schema, for example:
2424

2525
```console
26-
xsd mySchema.xsd
26+
xsd mySchema.xsd /classes
2727
```
28-
29-
The tool can only process schemas that reference the World Wide Web Consortium XML specification of March 16, 2001. In other words, the XML Schema namespace must be `"http://www.w3.org/2001/XMLSchema"`, as shown in the following example.
28+
29+
(The `/classes` option in this command is used to generate classes for the `mySchema` schema.)
30+
The tool can only process schemas that reference the World Wide Web Consortium XML specification of March 16, 2001. In other words, the XML Schema namespace must be `"http://www.w3.org/2001/XMLSchema"`, as shown in the following example.
3031
3132
```xml
3233
<?xml version="1.0" encoding="utf-8"?>

0 commit comments

Comments
 (0)