<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> <meta name="generator" content="Adobe GoLive 6"> <title>PHP SimpleXML / iterate through Xml file with class and open and close function</title> <link href="css/SimpleXMLMenu.css" rel="stylesheet" media="screen"> </head> <body bgcolor="#ffffff"> <p> <?php $url = "http://yourhost/SimpleXml_menuClass.php"; $txt = "Close Menu"; $navid = 'pageid'; $path = "xml/navi.xml"; $matching1 = "//uritext"; $matching2 = "//urltext"; $psub1 = "/links/sublink"; $psub2 = "subid"; $pmain = "/links/link"; require_once 'class/xml.menu.class.php'; $m = new XMLNavigation(); $m->PrepareMenu($url, $txt, $navid, $path, $matching1, $matching2, $psub1, $psub2, $pmain); ?> </p> </body> </html>