Index files
The relationship between the OCM files and the original DTD or schema files is kept in an index file. Each package directory has an index file.
Lines that begin with
#
are comments and are ignored.
The source DTD, XML, or schema file name is on a line by itself, followed by the generated OCM entries.
Each OCM entry contains the root name followed by the OCM file name. Both are enclosed in curly braces.
Example:
#This index file is used by the XML Package Manager GUI
#It is maintained by hcixmlcompile and should not be edited manually.
#Removing or editing this file will prevent the GUI from displaying
#Information properly.
levelone_1.0.xsd
{levelone}{levelone.ocm}
The index file is updated by hcixmlcompile.
For DTD files, if an entry for the OCM being generated already exists in the index file, then it is replaced. If there is no entry for the OCM or the original DTD, then it is created.
Because an XML file can only specify one root element, only one OCM file can be generated. This OCM entry is created if one is not present or replaced if one already exists.
For schema files, the default behavior of not specifying a root element deletes all existing OCM entries for this schema. It then adds all new entries. If a root element is specified, then that entry alone is replaced.