Advanced Customization > Services and Infrastructure Customization > Import Export Framework > How to Write an IX Application > Using the Exporter to Export Objects
  
Using the Exporter to Export Objects
After you create an instance of the class Exporter, for example exporter, you can use it to export top-level objects. The call to export the object ‘obj’ would be exporter.doExport(obj);
This is actually making a call to the method doExport (Object obj, String targetDTD, String targetElem) in the class Exporter.
In this method, the real Export handler for the object obj will be created.
* 
A list of available export handlers is created based on XML files in the folder <Windchill>\registry\ixb\handlers. If you pass a wrong DTD in the constructor of Exporter (a DTD that is not available in the system), you will not get the handler, so you cannot export the object. Please refer to How to Write Exp/Imp Handlers for information how to add entry for an Export handler to XML files.
If you have more than one object, you have to pass them to the exporter in a collection.
exporter.doExport(collection)
After you export all objects, you must call exporter.finalizeExport();
You can call clean-up methods of appHandler (if there are any). Now the export is finished.
* 
A sample file with comments is distributed along with installation information.