Author: Halfvares Mats, Teknikhuset AB.

Published: 2005-12-14

Applies to:
  • Content Studio ver. 4.0

Type: Information

More information

Normally the menu components Insert menu 2.0 and later use a hierarchal document structure as its source but it is also possible to use XML as source for the menu. This XML can be generated from an http source like or You can also supply a raw string containing xml or the name of a variable that contains the xml source. The XML must comply with the following source example.

 <document name="root" id="0" level="1" child="1" href="" >
  <document name="Menu 1" id="1234" level="2" child="1" href=" 1.htm">
   <document name="Menu 1.1" id="1235" level="3" child="0" href=" 1.1.htm">   

Each <document> element in the XML should support the following XML attributes

Xml Attributes
Attribute Description

The name of the menu item. This name will be displayed in the menu.


A unique identifier for the local Content Studio document that is this menu item. You should always supply an id for each element even if you do not generate the XML based on Content Studio documents.

level The level of the menu item. The root element has level 1 and its children have level 2 and so forth.
child This attribute must be set to 1 if the item has children 0 otherwise.
href  The url of the menu item. This will form the link of menu item. If this item is blank Content Studio will automatically link the menu to a local Content Studio document with the id identified by the id attribute.

The XML can contain any number of items in an many levels needed.