Configure the loading utilities | Resolve identifiers for records


Step 2: Generate a DTD and schema for using loading utilities


+

Search Tips   |   Advanced Search


The dtdgen utility creates a document type definition (DTD) file to use with the loading utilities. The dtdgen utility uses an input text file containing a list of database table names and generates a DTD file describing the database, depending on how you invoke the dtdgen utility.

The dtdgen utility can create a DTD file based on the WebSphere Commerce database schema. If you use the DTD files provided with the starter store archives and you do not modify the database schema, you do not need to generate a DTD file using the dtdgen utility.

To generate a DTD file, or a DTD file and XML schema definition (XSD) file:

  1. If necessary, configure the loading utilities first. (We discussed it this in Step1: Configure the loading utilities).

  2. Create an input text file that contains database table names, one on each line

    ADDRBOOK
    ADDRESS

  3. Save the file as a .txt file.

  4. Run the dtagen utility

    If you have configured the dtdgen utility, make sure that you specify the new file name as the value of the customizer parameter of the DTD Generator command. You can get more information about the Commerce dtagen utility from this link:

Note: If you are loading data for a store archive and created the XML file using the DTDs provided with the store archive, this step is not necessary.