This site is mobile accessible. Press the "Tap Here" button to use a different font-size.
Smartphone icons created by Freepik - Flaticon
// contents of external file <URL> <title>PHP Course Menu</title> <link> class='navigate' href='.' </link> </URL> <URL> <title>9.1 PHP XML Parsers</title> <link> class='navigate' href='9-1PHPXMLParsers.php' </link> </URL> <URL> <title>9.2 PHP SimpleXML Parser</title> <link> class='navigate' href='9-2PHPSimpleXMLParser.php' </link> </URL> <URL> <title>9.3 PHP SimpleXML - Get</title> <link> class='navigate' href='9-3PHPSimpleXMLGet.php' </link> </URL> <URL> <title>9.4 PHP SimpleXML</title> <link> class='navigate' href='' </link> </URL> <URL> <title>9.5 PHP SimpleXML</title> <link> class='navigate' href='.' </link> </URL> // load external file, extract and display the desired data <?php $xml=simplexml_load_file("include/testmenu.xml") or die("Error: Cannot create object"); foreach($xml->children() as $URL) { echo "<a " . $URL->link . ">" . $URL->title . "</a> "; } ?>