Documentation Center

Configuring PUBID, DATATYPE, and XMLDECL in AppData

You must configure SDL Contenta AppData for use with your XML editor.

PUBID, DATATYPE and XMLDECL must be specified in AppData. This data is used with your XML editor to create the required XML data for the start of the XML file. The GetDoc Adapter uses this data.

Create the information for the Global user. There are two keys that must be added under Global:
  • The first key is Document Types which may already exist.
  • Second is the actual doctype as it appears in the Document Type property sheet field of your SDL Contenta objects.

The Value Name field is set to either PUBID, XMLDECL, or DATATYPE. Note that these must be entered in upper case.

The corresponding Value Data field is defined accordingly. Note:
  • XMLDECL is the xml declaration that appears on the first line of an xml document. If none is found in AppData the default is used: xml version="1.0".
  • The DATA TYPE default is xml.
  • There is no PUBID default; a PUBID must be entered for each document type. The PUBID is inserted in the header by custom modules and is used to locate the DTD using the catalog or some other central look-up file.

Example: AppData for Adapter Customization

UserKeysValue NameValue data
{Global}\Document Types\BookPUBID"-//ArborText//DTD Book 950601//EN"
{Global}\Document Types\BookXMLDECL<?xml version="1.0" encode=”<?xml version="1.0" encode="utf-8" standalone="no"?>
{Global}\Document Types\MilitaryPUBID"-//ArborText//DTD docmilspec//EN"
{Global}\Document Types\MilitaryDATATYPEsgml