Edit online

Batch Converter

Attention: To run this script, you are required to purchase a special scripting commercial license.
The Batch Converter script helps you to convert between the following formats:
  • HTML to DITA
  • Markdown to DITA
  • Excel to DITA
  • Word to DITA
  • XML to JSON
  • JSON to XML
  • HTML to XHTML
  • Markdown to XHTML
  • Word to XHTML
  • HTML to DocBook4 / DocBook5
  • Markdown to DocBook4 / DocBook5
  • Word to DocBook4 / DocBook5
This script requires the Oxygen Batch Converter add-on to be installed in the all platforms distribution of Oxygen XML Editor. To install the add-on, follow these instructions:
  1. Go on the Oxygen Batch Converter plugin Releases page and download the latest oxygen-batch-converter-{version}-plugin.jar package.
  2. Unzip it inside {oxygenInstallDir}/plugins.
    Note: Do not create any intermediate folders. Afterwards, the file system should look like this: {oxygenInstallDir}/plugins/oxygen-batch-converter-{version}/plugin.xml

Arguments for the Batch Converter Script

sh scripts/batchConverter.sh -i inputFiles -if inputFormat -o outputDirectory -of outputFormat [-ss splitSections]
-i inputFiles
A list of space-separated input files or directories in file syntax form.
-if inputFormat
The format of the input files. The possible values are: HTML, Markdown, Excel, Word or XML.
-o outputDirectory
The output directory in file syntax form.
-of outputFormat
The format of the output files. The possible values are: DITA, JSON, XHTML, DocBook4 or DocBook5.
-ss splitSections
For Word to DITA conversions only, this argument specifies whether or not DITA maps will be created for documents that contain multiple sections marked by titles or headings. The possible values are true or false (default).