Exporting data as XML
You can select one or more objects and export them to a readable XML file or directly to another server. By exporting data as XML, you can transfer IBM® Content Manager metadata, including data model objects, such as item types and their attributes, and administration objects, such as server definitions and access control lists, from one IBM Content Manager system to another.
About this task
You can export objects with their prerequisites. Each metadata object has a set of attributes. Some of these attributes might be other IBM Content Manager objects. These other objects are considered prerequisite, or dependent, objects.
Exported files contain import statements that refer to IBM Content Manager schema files. These files are specific to your IBM Content Manager installation; they are in the IBMCMROOT\config directory. If you are using XML Services in IBM Content Manager administration, no action is necessary. If you want to load an exported file into a different tool, such as an XML editor, specify the location of IBMCMROOT\config\cmdatamodel.xsd. On Windows, the default location of IBMCMROOT is C:\Program Files\IBM\db2cmv8. On Linux® and AIX®, it is /opt/IBM/db2cmv8.
To export data, complete the following steps:
Procedure
What to do next
To properly import a particular object, all of the prerequisite objects have to either exist or be already imported to the system. To guarantee that this action occurs, the export order is important. When you choose to export an object with the prerequisite option on, the proper order is ensured. However, IBM Content Manager cannot handle the situation where there is a cyclic dependency among objects of the same type.
- Item Type A depends on Item Type B (because of a foreign key definition)
- Item Type B depends on Item Type C (because of an auto foldering definition)
- Item Type C depends on Item Type A (because of a foreign key definition)
A warning message is logged in the connector log file
and is displayed in the system administration client when this situation
is detected during XML export. The message in the log file describes
where the cycle is. In the example, the following log message is found
in the log file: [MSG]: There is a cycle ([A, B, C]) within
the dependent objects of A of type ITEM TYPE. When import the definitions
to another system, please remove the cycle before import the XML document.
- Make a copy of the exported XML file.
- Break the cycle in the XML file. In the example, remove the foreign key definition temporarily from C to A in the XML export file.
- Import the modified XML file.
- Add the removed definition back to the XML file. In the example, it is the foreign key definition from C to A.
- Import only the objects being affected. In the example, it is the item type C.
During the export process, the real password of a system
administration object, such as a user, is not exported. The default
text password is used instead. This feature is introduced
for security reasons. There should not be any real password in clear
text written in the export file.
The following system administration
object passwords are exported as password:
- password for user
- password in the resource manager server definition (CMResourceManagerDefinitions)
- resource manager password in the resource manager configuration definition
- Db2 Text Information Extender or Db2 Net Search Extender password for the library server configuration.
When the export process is finished, each of these objects
has password as the password.
If you want
to import the exported object back to the database, change the default
password in the exported file before importing it. Otherwise, the
default password (password) is imported into the
target system. This rule applies to all the system administration
objects that have password fields.
Because the exported password
is always the default text password, while importing
in interactive mode, the comparison is based on the target system
having the default password also. Even though the passwords in the
source object and target system object are the same, the conflict
might still arise.