XML Menu Model

XML Menu Model

The XML menu model represents navigation for a page hierarchy in XML format. In the XML menu model metadata, a page hierarchy is described within the menu element, which is the root element of the file. Every XML menu model metadata file is required to have a menu element. Only one menu element is allowed.

A hierarchy is comprised of nodes. Each node corresponds to a page. The menu element can contain elements for the following nodes:

■ groupNode:

Contains one or more child nodes to navigate to indirectly. It must reference the id of at least one of its child nodes, which can be either another group node or an item node.

■ itemNode:

Specifies a node that performs navigation upon user selection.

■  sharedNode:

References another XML menu. A sharedNode is not a true node; it does not perform navigation nor does it render anything on its own. It is simply an include mechanism. Use a sharedNode to link or include various menus into a larger hierarchy.

Advertisements