You can export the settings of the Schema Documentation dialog to an XML file by
pressing the "Export settings" button. With the exported settings file you can generate
the same documentation from the command line by running the script
schemaDocumentation.bat
(on Windows) /
schemaDocumentation.sh
(on Mac OS X / Unix / Linux) located in
the <oXygen/> installation folder. The script can be integrated in an external batch process
launched from the command line.
The command line parameter of the script is the relative path to the exported XML settings file. The files which are specified with relative paths in the exported XML settings will be made absolute relative to the directory from where the script is run.
Example 4.12. Example of an XML configuration file
<serialized> <map> <entry> <String xml:space="preserve">xsd.documentation.options</String> <xsdDocumentationOptions> <field name="outputFile"> <String xml:space="preserve">${cfn}.html</String> </field> <field name="splitMethod"> <Integer xml:space="preserve">1</Integer> </field> <field name="openOutputInBrowser"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="format"> <Integer xml:space="preserve">1</Integer> </field> <field name="customXSL"> <null/> </field> <field name="deleteXMLFiles"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeIndex"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeGlobalElements"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeGlobalAttributes"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeLocalElements"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeLocalAttributes"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeSimpleTypes"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeComplexTypes"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeGroups"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeAttributesGroups"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeRedefines"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="includeReferencedSchemas"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsDiagram"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsNamespace"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsLocation"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsType"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsTypeHierarchy"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsModel"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsChildren"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsInstance"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsUsedby"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsProperties"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsFacets"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsAttributes"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsIdentityConstr"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsEscapeAnn"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsSource"> <Boolean xml:space="preserve">true</Boolean> </field> <field name="detailsAnnotations"> <Boolean xml:space="preserve">true</Boolean> </field> </xsdDocumentationOptions> </entry> </map> </serialized>