Moxi Media Inc.
<SITE-CONFIG> Tree View | Discussion Forum
IMF Developer's Guide » Site Configuration » <SITE-CONFIG>  

A site configuration XML file is used to set the properties of an IMF web mapping application. It is used to customize the tabs, tools and functions that are available on the site, specifies references to the map and index map configuration documents, and sets up the initial contents of the frames in the viewer. It is also used to specify the language used in the user interface.

The <SITE-CONFIG> element is the topmost tag of a site configuration XML file. The elements of the site configuration file must be enclosed in a <SITE-CONFIG> element tag:

<?xml version="1.0" encoding="UTF-8"?>
<SITE-CONFIG>
<!-- all your configuration stuff goes here -->
</SITE-CONFIG>

Note that the map configuration file elements must appear in sequence. 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 this file format.

The current schema for the site configuration XML is located at:

.. or on your IMF server in the schema directory within the IMF installation direcory.

Your XML documents can be validated against the schema on Moxi Media's server, or a copy of the file installed on yours. To specify that the file be validated when working with an XML editor, when creating a set of configuration files for installation in a subdirectory of your sites directory, use the following format:

<?xml version="1.0" encoding="UTF-8"?>
<MAP-CONFIG xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
            xsi:noNamespaceSchemaLocation="../../schema/site-config.xsd">
<!-- all your configuration stuff goes here -->
</MAP-CONFIG>

Frequency Child Elements
RS1 <LOCALE>
OS1 <GUI>
RS1 <MAP-CONFIG-XML>
OS1 <INDEX-MAP-CONFIG-XML>
OS1 <THEME-CONFIG-XML>
OS1 <BROWSER>
RS1 <TITLE-FRAME>
RS1 <TAB-FRAME>
OS1 <TOOL-FRAME>
OS1 <MAP-FRAME>
RS1 <DATA-FRAME>
OS1 <STATUS-FRAME>
OS1 <HIDDEN-FRAME>
RS1 <TABS>
RS+ <TOOLSET>
OS+ <FIND-LOCATION>
OS+ <STARTUP-SCRIPT>
OS+ <PROPERTY>
OS+ <QUICK-VIEW-EXTENT>
OS+ <WMS-PORTAL-RESOURCE>
   

Frequency Description (in this context)
RS1 The child element must appear exactly once in the sequence specified.
RS+ The child element must appear one or more times in the sequence specified.
OS1 The child element may appear once in the sequence specified.
OS+ The child element may appear zero or more times in the sequence specified.
   

Valid HTML 4.01!