Running the XML DTD Importer
Use the XML DTD Importer to automatically generate XML DTD type trees.
About this task
The following procedure describes how to use the XML DTD Importer Wizard to generate a type tree from an XML DTD.
To run the XML DTD Importer:
Procedure
- Access the Importer Wizard in the Design Studio application.
-
In the Import window, expand the Transformation
Extender folder, select XML DTD from the
import source list, and click
Next.
The XML DTD Importer window opens.
- Enter or select the name of the XML DTD file that you want to import, following the Importer Wizard instructions, and then click Next.
- If applicable, select the national language that describes execution-time data. The default value is Western.
-
Under Validation, select one of the following
validation types:
- Xerces to create a version 8.0 type tree that is validated with the Xerces parser.
- Classic to create a version 7.5.1 type tree that is validated with classic validation.
- To create a placeholder for the document type (DOCTYPE) declaration in the resulting type tree, select the Generate DOCTYPE option.
- Click Next.
- Enter or select the parent folder of the generated type tree.
-
For File name, do one of the following choices:
- To create a type tree file, enter a new name.
- To overwrite an existing type tree file, enter its
name if it does not already display in the field.
The default name for the type tree is the XML DTD file name with the .mtt extension.
-
To generate the type tree, click Next.
If you selected a file name for an existing type tree file, you are prompted to continue or stop the import operation in the Overwrite Warning window.
After the import operation runs, it displays the run results in the XML DTD Importer window. If errors or warnings, or both, occur, they display in that same window. The errors and warnings are also saved to a log file in the product installation directory. The file name is either dtd.log or ttmaker.log, depending on where in the process the errors and warnings occur. You can open this file and analyze it in a text editor after the import operation completes. The import operation deletes and regenerates these log files every time a new XML DTD is imported. If errors occur, the import operation cannot generate the type tree until you resolve the problem. If only warnings occur, the import operation can still generate the type tree. However, to ensure that the reported warnings do not interfere with the requirements necessary for a valid instance document, inspect the generated type tree.
-
After the type tree generation process is complete, click
Finish.
If the type tree was generated, you are given the option to open the type tree in the Type Tree editor. The Properties view for the generated type tree contains the imported data format for the generated type tree. You can also click the type tree in the Extender Navigator view or the Navigator view to view the date and time that the import operation generated the type tree, under the Info property in the Properties view.