publish-xsd ~~~~~~~~~~~ Introduction ---------------------- Generates an XML schema for the data model. Requires that `dotnet <../../installation/dotnet/index.html>`_ is installed. Command Line Arguments ---------------------- Required inputs for the publish-xsd command (must be specified in order). * ``[CogsLocation]`` The location of the folder containing the model. * ``[TargetLocation]`` The location of the folder where the output will be created. Command Line Flags ---------------------- Optional inputs for the publish-xsd command. * ``-?|-h|--help`` Displays all possible command arguments and flags for the publish-xsd command. * ``-o|--overwrite`` If the ``[TargetLocation]`` is not empty, erase all files in the folder before generation. * ``-n|--namespace`` Allows the user to specify the XMI of the desired XML namespace. * ``-p|--prefix`` Allows the user to specify the prefix for the XML namespace. Command Line Usage ------------------- **Format** .. code-block:: bash $ publish-xsd (-h) (-o) (-n [namespace]) (-p [prefix]) [CogsLocation] [TargetLocation] **Examples** A few examples of how the command line arguments and flags can be used together. .. code-block:: bash $ publish-xsd -h $ publish-xsd MyCogsModelDirectory MyOutputDirectory $ publish-xsd -o MyCogsModelDirectory MyOutputDirectory $ publish-xsd -n http://example.org/cogs -p cogs -o MyCogsModelDirectory MyOutputDirectory Primitive Type Mappings to XML ------------------------------- =================== ===================== Primitive Type XML representation =================== ===================== AnyURI `anyURI `_ Boolean `boolean `_ CogsDate Union of `date `_, `dateTime `_, `duration `_, `gYear `_, and `gYearMonth `_ primitive types. Date `date `_ DateTime `dateTime `_ Decimal `decimal `_ Double `double `_ Duration `duration `_ Float `float `_ GDay `gDay `_ GMonth `gMonth `_ GMonthDay `gMonthDay `_ GYear `gYear `_ GYearMonth `gYearMonth `_ Int `int `_ Integer `integer `_ Language `language `_ Long `long `_ NegativeInteger `negativeInteger `_ NonNegativeInteger `nonNegativeInteger `_ NonPositiveInteger `nonPositiveInteger `_ PositiveInteger `positiveInteger `_ String `string `_ Time `time `_ UnsignedLong `unsignedLong `_ =================== =====================