<?php
 
 
// require the class
 
require_once("xmlparser.class.php");
 
 
// parse the xml file to a data structure
 
$PARSER = new SimpleXmlParser('example.xml');
 
 
// get the root node of the XML tree
 
$ROOT = $PARSER->getRoot();
 
 
// here you can see the structure built by the class
 
echo '<pre>';
 
var_dump($ROOT);
 
echo '</pre>';
 
 
?>
 
 |