Configuration 4 GNU (CFG)


Document Structure

Prev   Next

Root element

The root element identifies the node type. The name of the root element must match the type of the configuration node that the document represents. For instance, when the INI file parser generates an XML representation of an INI file, it creates a root element named inifile, because that is the type of node that represents an INI file.

The root element will contain child nodes and properties. See the following sections for an explanation of child nodes and properties.

Child nodes

Child nodes are identified by looking for child elements of the element for the current node with an attribute sectionname. The name of the child element identifies the node type of the child node. The value of the sectionname attribute identifies the name of the node. For example, <inisection sectionname="global"> identifies a child node of type inisection with the name "global."

Child nodes themselves can contain additional child nodes and properties.

Properties

Properties are identified by looking for child elements with the name of property or parameter.

The property element can contain one or more of the following entities:

  • value

  • comment

  • whitespace

These elements are simple elements. They can only contain text. They are described in further detail in a later section.

Prev Up Next
An example Home Properties

SourceForge Logo