Content Handlers

This document describes how content handlers parse data files and which data fields they can provide.

 

HTML Handler

Predefined fields are:

body
Words from the visible page content. This field can not be stored.
description
Words that appear in the first 200 characters of the visible page content or "description" META tag if it exists.
img.tag
ALT attribute of the <IMG> tag.
object.body
<OBJECT> tag content.

 

In addition, content of any HTML META tag can be indexed or/and stored. Meta tag format looks like:

   <META NAME="field name" CONTENT="field content">

 

Text Handler

Text content handler provides two different fields:

 

XML Handler

Content of any XML tag or its attribute can be indexed or/and stored. XML handler recognizes data fields specified by this generic scheme:

  [parent1.parent2].tag_name[>attribute_name]

where parent1 and parent2 are tags in XML hierarchy. If parent tags are not specified tag tag_name will be worked out no matter where in XML structure it appears.

The following example shows specified data fields along with recognized content.

XML content:

  <?xml version="1.0"?>
  <!DOCTYPE personnel SYSTEM "personal.dtd">
  <personnel>
    <person id="J.MILLER" >
      <name><family>MILLER</family> <given>John</given></name>
      <email>john@somewhere.com</email>
      <link subordinates="S.SMITH T.PHILLIPS"/>
    </person>
    ...
  </personnel>
Data field
Field content
personnel.person.name
MILLER John
personnel.person.link>subordinates
S.SMITH T.PHILLIPS
.email
john@somewhere.com
.person>id
J.MILLER


 


Copyright © 1997, 1998 JObjects - All right reserved.
contact@jobjects.com