<?php
// read local XML file
require_once('class.simpleTagReader.php');
$fileLen = filesize('example_localFile.xml');
$test = new simpleTagReader('example_localFile.xml', $fileLen);
$map_no5 = $test->readTag('map', 5);//read 5th "map" Tag
echo "5th map: " . $map_no5;
echo "<br />";
$all_names = $test->readAllTags('name');//read All "name" Tags
print_r($all_names);
?>
|