The documentation Generation can be run from the command line. In order to do this the /XsdDoc argument must be specified.
/XsdDoc | Generates HTML documentation for an XSD. |
/XsdDocType=Html|Aspx|Custom | The type of documents to generate. |
/XsdDocTemplate=<xslt file> | If XsdDocType=Custom then this is the XSLT file used to perform the documentation generation. |
/XsdDocOut=<outputDir> | The full path where the HTML files will be written. |
/XsdDocTitle=<title> | The title of the documentation. |
[/XsdDocDesc=<desc>] | The description of the documentation. |
[/XsdDocSchemas=<url>] | Additional schemas, separated by ; or a XsdDocSchemas parameter for each schema. |
[/XsdDocParam=param:value] |
Parameter values passed to transform. Built in values: |
Example - Generate HTML Documentation: |
Copy Code
|
---|---|
XmlStudio.exe C:\Schemas\MySchema.xsd /XsdDoc /XsdDocType=Html /XsdDocOut="C:\My Output" /XsdDocTitle="My Schema" /Close |
An XSD with one or more xs:include's can be flattened into a single XSD using the following options.
If the source XSD contains multiple target namespaces this is not possible, see XSD Editor Flatten Schema
/FlattenXsd /XsdOut=<outputFile> |
Flattens an XSDs xs:includes and xs:redefines into a single file. The filename that the flattened XSD will be written to. |
Example - Generate HTML Documentation: |
Copy Code
|
---|---|
XmlStudio.exe C:\Schemas\MySchema.xsd /FlattenXsd /XsdOut=C:\Schemas\MyFlatSchema.xsd /Close |