Structure of mappings.xml file

In the mappings.xml file, the mapping table is contained within an XML element called tcccp:Mappings. The mapping table is divided into Item Sets, that is, groups of mappings of the same item types.

For example, there are item sets for Folders, for Schemas and for Components. Items sets are XML elements named tcccp:Itemset. The type of items that Content Porter maps is in the role attribute.

Within the item set are one or more mappings, contained in elements called tcccp:Mapping. Each mapping has the following attributes:

  • ExportContext: the location of the item on the source instance
  • ExportTitle: the name of the item on the source instance
  • ImportContext: the location of the item on the destination instance
  • ImportTitle: the name of the item on the destination instance

By default, ImportContext and ImportTitle are empty. This means that Content Porter attempts to map the export item to the same location on the destination instance without changing the item's name.

You can now do two things:

  • To change the location of an item on the destination system, change the ImportContext attribute.
  • To change the name of an item on the destination system, change the ImportTitle attribute.