The XML Export tool is a command line wrapper of the XML export that you find in the swArchitect and swExplorer clients. Depending on your needs, it can be suitable to export meta model and/or metadata in the form of an XML file. Note that it is not possible to produce XMI or ReqIF file output. The tool is 64-bit. As this tool is not part of our standard delivery, to obtain it, contact


  • Server, port and login information for the database from which you want to export.
  • An installation of the swXMLExport tool including all necessary dll files.
    Note: In pre-R40 versions, the tool is called swExport.
  • The machine on which you are running the command must have sufficient RAM. Example: very large structure exports including all versions (95,000 items) and all attachments (584 MB attachment file structure) could be completed in approx. one hour with a 16 GB laptop.

Installing the Tool 

Saving the swXmlExport directory to a suitable location on your drive. The directory should contain the following files: 

Creating the Command Line

Below are two example command lines to illustrate how to include server information and options: 

Example 1

Exports an xml file containing the meta model and all config items:

swXmlExport.exe XmlFileName=c:\temp\MMExport.xml ExportConfigItems=true ServerName=sys7 ServerPort=1345 ServerUserName=username ServerPassword=password

Example 2

Exports an xml file that does NOT contain the meta model (ExportMetadata) (You may want to exclude it if the target database is already prepared with a compatible meta model). It also excludes plain descriptions (This may be excluded if, for example, the import will use the formatted descriptions). The export will include previous versions and attachments: 

swXmlExport.exe XmlFileName=c:\Temp\Export.xml ServerName=abc23 ServerPort=3022 ItemId= IncludePreviousVersions=true ExportMetadata=false IncludeAttachments=true ServerUserName=user ServerPassword=XXX

Below are all options that can be used for the export:

OptionsExpected value typeCommentExample
ServerPortInteger ServerPort=1768
ServerNameString ServerName=localhost
ServerUserNameStringIf not supplied, network authentication will be used.ServerUserName=user
ServerPasswordString ServerPassword=pass
XmlFileNameString XmlFileName=D:\test.xml
ItemIdSystemWeaver xIdOptionalItemId=x0000001D04533514
IncludeLaterVersionsBooleanOptional Default=falseIncludeLaterVersions=true
IncludePreviousVersionsBooleanOptional Default=falseIncludePreviousVersions=true
ExportMetadataBooleanOptional Default=trueExportMetadata=true
ExportConfigItemsBooleanOptional Default=falseExportConfigItems=true
IncludePlainDescriptionBooleanOptional Default=falseIncludePlainDescription=true
IncludeAttachmentsBooleanOptional Default=falseIncludeAttachments=true
IncludeItemOwnerBooleanOptional Default=falseIncludeItemOwner=true
SwapInForeignIdBooleanOptional Default=falseSwapInForeignId=true
ExportBitmapsBooleanOptional Default=falseExportBitmaps=true
ExportFontFilesBooleanOptional Default=falseExportFontFiles=true

Example 3

Export only the meta model.

swXmlExport.exe XmlFileName=c:\temp\test.xml ServerName=sys7 ServerPort=1111 ServerUserName=username ServerPassword=password

Things to Consider

  • If you are exporting a large amount of data, your export could effect performance for other system users. Keep this in mind when scheduling your export

Example of a Completed Export Command

To use the tool, run your command line from the location of the executable and related files.