The <layer-config> element is the topmost tag of a layer configuration XML file.
The elements of the layer configuration file must be enclosed in a <layer-config> element tag:
<?xml version="1.0" encoding="UTF-8"?>
<layer-config>
<!-- all your configuration stuff goes here -->
</layer-config>
For best results, and to avoid making errors when working with the
configuration files, use an XML editing tool like
XMLSPY to
create, edit, and validate your XML against
the schema for the layer configuration XML file
format. The Home Edition works well, and is free.
Your XML documents should be validated against the schema that you have in ne config directory of your
IMF distribution. To specify that the file be validated when working with an XML editor, use
something like the following in your site configuration documents:
<?xml version="1.0" encoding="UTF-8"?>
<layer-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="c:/imf-aims51/config/layer-config.xsd">
<!-- all your configuration stuff goes here -->
</layer-config>
It is recommended that you use a relative file location for the schema instead
of a complete file path. For example, if your configuration files are in a sub-folder
of the $IMF/sites directory, you could use:
<?xml version="1.0" encoding="UTF-8"?>
<layer-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="../../config/layer-config.xsd">
<!-- all your configuration stuff goes here -->
</layer-config>
| Frequency |
Description (in this context) |
|
O+ |
The child element may appear one or more times in the <layer-config>
element in any order. |
| |
|
|