Validating the XML
The adapter includes an external DTD file, dbhma
.dtd
. During installation, this file is copied to the directory where the adapter is installed. The DTD defines valid syntax for all elements and attributes in the adapter configuration file.
Since this information is stored in a separate file, you can use a validating XML parser to check the syntax after editing the file. The parser applies the syntax rules specified in the DTD to the file contents. Validating the XML is an optional step that helps prevent errors resulting from invalid syntax.
To validate XML syntax in the adapter configuration file:
- Using any text editor, open the file.
- Change the following line:
<!-- <!DOCTYPE TIBHAWK_AMI SYSTEM "<HAWK_DBHMA_HOME>/xml/dbhma.dtd"> -->
to:
<!DOCTYPE TIBHAWK_AMI SYSTEM "
<HAWK_DBHMA_HOME>/xml/dbhma.dtd">
by deleting the comment characters.
- Save and close the file.
- Pass the file name to any available validating XML parser.
After validating the configuration file, you should restore the deleted comment characters and save the file. If the line that references the adapter DTD is active, the adapter does not start.