The DTD Generator can create a document type definition (DTD) to use with the Loader package. The DTD Generator uses an input file containing database-table names and generates a DTD describing the database, depending on how you invoke the DTD Generate command.
To generate a DTD, or a DTD and schema:
- If necessary, configure the DTD Generator.
- Create an input file that contains database table names, one on each line, as shown in the following example,
MEMBER ADDRBOOK ADDRESS
- Save the file as a .txt file.
- Run the DTD generate command, if you configured the DTD generator, specify the new file name as the value of the customizer parameter of the DTD Generate command.
- To generate a DTD only run the GenerateDTD command with the -outfile parameter.
Important: The DTD Generator can create a DTD based on the WebSphere Commerce database schema. If you use the DTDs provided with the starter store archives and you do not modify the database schema, you normally do not need to generate a DTD using the DTD Generator.