Command line interface for migration > Migrating runtime repository data > Exporting document definitions > Creating the document definition XML

Creating the document definition XML
The document definition xml used with the -b/--docdefbatch flag defines which document definitions to export. The syntax of document definition xml is illustrated by the following example:
<?xml version="1.0" encoding="UTF-8" ?> 
<exportpackage xmlns="http://schemas.streamserve.com/exportresourcelist/1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<exportinfo/>
<templates>
  <template>
    <docdef guid="4028C00E-3A6E-9B15-013A-6E9FF4550001"/>
  </template>
  ...
  <template>
    <docdef guid="4028C00E-3A6E-A888-013A-BC1C8E47000F"/>
  </template>
</templates>
</exportpackage>
You can create this xml manually or use list-resources.bat (see Running list-resources.bat below) to create this file.
Running list-resources.bat
You can run list-resources.bat or the UNIX equivalent list-resources.sh to generate an xml file that includes all document definitions in a runtime repository. list-resources.bat and list-resources.sh are located in:
<StreamServe_installation>/Applications/Management/<version>/bin
When you run list-resources.bat/list-resources.sh, you must point out the service gateway of the application domain that contains the runtime repository. You must also specify the path to the output file (document definition xml).
The resulting document definition xml includes all document definitions in the runtime repository. You can open this file in an editor and remove all document definitions (<template>...</template>) you want to exclude from the export. Before you use the file in the document definition export you must open it in a web browser to verify it is not corrupt.
Command syntax
list-resources.bat -t <tPath> -o <oPath>
<tPath>
Path to territory.xml for the service gateway in the application domain:
<mgwRoot>\applications\<sgw>\wd\territory.xml
<oPath>
Example
list-resources.bat -t "C:\ManagementGateway\5.6.0\root\applications\SGW2\wd\territory.xml" -o  "C:\STRS_misc\ListResources.xml"
OpenText StreamServe 5.6 Updated: 2013-03-01