Configuring values under Tool Preferences
Follow these steps to configure the PUBID, DATATYPE, and XMLDECL values.
Procedure
- Click on the Global desktop in the left pane of the Tool Preferences window.
- Click Insert Key to add a key for Document Types.
An Enter Keyname dialog box appears.
- Enter the keyname, Document Types, and then click OK.
- Click on the Document Type key (folder), and then click Insert Key to add the Contenta document type.
The Contenta document type is the value stored in your Contenta object’s Document Type property sheet field. This value is case-sensitive.Note: If the case for Document Type does not match the case in the property sheet field, the editor does not find the key.
- Click on the document type key (folder) then click Insert Value.
An Edit Value window appears.
- Add the value PUBID in the Value Name field.
Note: Add the PUBLIC identifier for the selected document type in the Value Data field. This must be a PUBLIC identifier; it cannot be a SYSTEM identifier.Note: The PUBID Value Name must be entered in uppercase.
- Click OK when done defining the Value Name and Value Data.
The PUBID name and its value is added to the right pane of the Tool Preferences window for the selected Document Type.
- Repeat the previous two steps to add values for DATATYPE and XMLDECL environment variables.
- If the XML defaults values apply (see Document Type property Sheet Field in this documentation), you do not have to add them.
- If the DATATYPE is not XML, do not add a value for XMLDECL because that value is ignored.
- Default encoding is UTF-8; if your data is ISO-8859-1 set the value of XMLDECL to the following.
<?xml version="1.0" encoding="iso-8859-1"?>
Note: If the encoding is not defined properly, parsing results in an error, and the system displays the following message.The xml data appears to be causing a parsing error
- Repeat Steps 4 through 7 for each document type stored in your objects’ property sheets.
Related concepts