PHP Classes

File: menu.xml

Recommend this page to a friend!
  Classes of Geoff Foley   XML Site Navigation   menu.xml   Download  
File: menu.xml
Role: Auxiliary data
Content type: text/plain
Description: Example XML menu file
Class: XML Site Navigation
Display a menu of links read from a XML file
Author: By
Last change:
Date: 14 years ago
Size: 1,141 bytes


Class file image Download
<?xml version="1.0" encoding="ISO-8859-1"?> <!-- Each 'level' contains user access level appropriate menu items. This structure can also be used to provide for page-level menus instead of access-level menus. It could even be used for the management of multiple menus across multiple pages. The options are really limitless. The 'level' concept is just how I initially designed the menu system to work as it was required at the time. For each menu item, the URL and TITLE tags are required. The <target>new</target> element is optional and is used to generate anchor tags with a 'target=new' attribute. --> <website> <menu> <level1> <item> <url></url> <title>Yahoo!</title> </item> <item> <url></url> <title>Google</title> <target>new</target> </item> <item> <url></url> <title></title> </item> </level1> <level2></level2> </menu> </website>