Specialized Administration > Tailoring Business Objects > Type and Attribute Management > Type and Attribute Management Command-Line Tools > Exporting and Importing Type Information > Exporting Types > Creating an Export Definition File
  
Creating an Export Definition File
To perform an export, you must first create an export definition file. The export definition file can have any name, for example DefinitionExporter.xml. The format for the export definition file is shown in the following example:
<?xml version="1.0"?>
<!DOCTYPE NmLoader SYSTEM "standardX26.dtd">
<NmLoader>
<csvExportDefinition handler="com.ptc.core.lwc.server.
TypeDefinitionExporter.beginExportDefinition">
<csvtoLocation>D:\temp</csvtoLocation>
<csvtoFileName>documents.xml</csvtoFileName>
<csvexportDefClass>com.ptc.core.lwc.server.LWCTypeDefinition</csvexportDefClass>
<csvexportNames>wt.doc.WTDocument</csvexportNames>
</csvExportDefinition>
</NmLoader>
The example export definition file instructs the exporter to export the metadata of the wt.doc.WTDocument type and all of its subtypes to load files in the following location, where # is the number suffix appended to the generated type load file: D:\temp\documents_#.xml.