LCC XML Document Root Element - USEPA/ATtILA2 GitHub Wiki

Root Element: lccSchema

Basic structure of ATtILA's Land Cover Classification schema XML document: Root element (lccSchema).

<lccSchema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="lcc" xsi:schemaLocation="lcc XSD_FILE_PATH">
    .  
    .
    .
</lccSchema>

The <lccSchema> tag is the root element of the LCC XML document. All other elements in the LCC XML document are contained within this element. XML documents are limited to one root element.

The XML root element can also contain information specific to the location and name of an XML Schema Document (XSD). The XSD document is used for validating the form and contents of the XML file. Information about the XSD document is optional.

The XSD information, if included, appears in the following form:

<lccSchema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="lcc" xsi:schemaLocation="lcc XSD_FILE_PATH">

where XSD_FILE_PATH is the relative or absolute path of the XML schema file. When the XML file is located in the same folder as the designated XSD file, the XSD_FILE_PATH is simply the name of the XSD file.

The XSD file prepared for validating ATtILA's XML documents is named LCCSchema.xsd. It is located in the ToolboxSource > LandCoverClassifications folder in the ATtILA toolbox destination folder (see Installing ATtILA).

You can include the following line as your root element if you place your custom XML document in the same folder as the XSD file:

<lccSchema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="lcc" xsi:schemaLocation="lcc LCCSchema.xsd">

arrow_up Top of the page     |     arrow_left XML Declaration     |     arrow_right Metadata Element


⚠️ **GitHub.com Fallback** ⚠️