Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Marcos Pont  >  SimpleXmlParser  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: The example script
Class: SimpleXmlParser
Class to parse XML files
Author: By
Last change:
Date: 2003-02-16 02:11
Size: 339 bytes
 

Contents

Class file image Download
<?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>';

?>