You can set up your indexing operation to automatically create sections from XML documents using the section group AUTO_SECTION_GROUP
. The system creates zone sections for XML tags. Attribute sections are created for the tags that have attributes and these sections named in the form tag@attribute
.
For example, the following statement creates the index myindex on a column containing the XML files using the AUTO_SECTION_GROUP
:
CREATE INDEX myindex ON xmldocs(xmlfile) INDEXTYPE IS ctxsys.context PARAMETERS ('datastore ctxsys.default_datastore filter ctxsys.null_filter section group ctxsys.auto_section_group' );