Product DocsMenu

Additional XML Attributes

This section presents additional XML attributes necessary to index data from a database. Basically, a single mandatory section must be included in a configuration file: the Mapping node, which must be placed under a parent ODBC node.

The following displays this basic structure:

<?xml version="1.0" encoding="utf-8" ?> 
<ODBC>
  <CommonMapping>
  </CommonMapping>
  <Mapping>
  </Mapping>
</ODBC>  
Note: The CommonMapping node is optional.

<CommonFields>

As in the Mapping section, it is a Fields node that is added to all mappings except the ones specified in the ExcludedItems list. This list is made of comma (,) separated values.

Refer to the following example:

<CommonFields excludedItems="ItemType">
</CommonFields>

<Mapping type=" ">

Each Mapping node must have a type attribute. This attribute represents the name of this mapping and is the value used to reference a mapping.

<BinaryBody>

This node is used to map a BLOB field from the database to the body of the document. Exceptionally, the value specified for this node must not use the standard syntax %[odbcField]. Instead, use the syntax odbcField. Once the mapping is resolved, an appropriate converter is called depending on the type of file inside the BLOB field of the database.

Note: You cannot use both BinaryBody and Body nodes at the same time.

<PrintableUri>

URI displayed in the user interface of CES.

<ContentType>

Type of data in the body of the document. Either this node or <FileName> must be specified, as it is used to find the appropriate converter. If you are not sure of the type of data being indexed, use the binarydata value and CES will find the right converter for your document data. The mapping syntax should be used to define the mapping of this field.

Note: For database records without an actual filename, do not specify the <FileName> node; however, do specify the <ContentType>text/html</ContentType> node.

<ModifiedDate>

Last modification date on a document. The value of this field must be a date, and the mapping syntax should be used to define the mapping of this field.

People who viewed this topic also viewed