Skip to content

Commit

Permalink
Explain namespace mapping file option
Browse files Browse the repository at this point in the history
  • Loading branch information
mganss authored Jun 21, 2022
1 parent b790508 commit ff78909
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ Options:
xsd) to the XML namespace.
If no mapping is found for an XML namespace, a
name is generated automatically (may fail).
--nf, --namespaceFile=VALUE
file containing mapppings from XML namespaces to C#
namespaces
The line format is one mapping per line: XML
namespace = C# namespace [optional file name].
Lines starting with # and empty lines are
ignored.
-o, --output=FOLDER the FOLDER to write the resulting .cs files to
-i, --integer=TYPE map xs:integer and derived types to TYPE instead
of automatic approximation
Expand Down Expand Up @@ -208,6 +215,20 @@ xscgen -n =Example example.xsd

Note the space between `-n` and `=Example`.

#### Using mapping files

Instead of specifying the namespace mappings on the command line you can also use a mapping file which should contain one mapping per line in the following format:

```
# Comment
http://example.com = Example.NamespaceA a.xsd
http://example.com = Example.NamespaceB b.xsd
= Empty
```

Use the `--nf` option to specify the mapping file.

Nullables<a name="nullables"></a>
---------------------------------

Expand Down

0 comments on commit ff78909

Please sign in to comment.