User Guide
142 Chapter 7 Indexing XML Documents
The following command indexes the content between the start and end tags of the
specified xmltag as a field, which is given the same name as xmltag:
<field xmltag = "column_1"/>
The following command indexes the content between the start and end tags of the
specified
xmltag as a field, which is given the name specified in the fieldname
attribute:
<field xmltag = "column_2" fieldname = "vdk_field_2"/>
The following command indexes the content between the start and end tags of the
specified
xmltag as a field, overriding any existing value of the field:
<field xmltag = "column_2" index = "override"/>
Note
Both fieldname and index attributes can be used in a field command.
style.ufl file
If administrators have defined custom fields to be populated in the style.xml file,
the fields must also be defined in the
style.ufl file or style.sfl file, using standard
syntax.
style.dft file
To create a collection that contains only XML documents, administrators can modify
the
style.dft file to invoke the XML filter directly. In this case, the XML documents
do not need a
.xml extension.
The
style.dft must include the following lines:
$control: 1
dft:
{
field: DOC
filter="flt_xml"
}