|
| <site-config> | 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 layer and other configuration documents, and sets up the initial contents of the frames in the viewer.
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>
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. When using a validation tool, note the the elements must appear in the sequence below.
The schema for the site configuration XML is located at:
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, use the following format:
<?xml version="1.0" encoding="UTF-8"?>
<site-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://moximedia.com/imf406/site-config.xsd">
<!-- all your configuration stuff goes here -->
</site-config>
Note that you can use a file location for the schema reference instead of a URL.
|