<?php
require_once "/home1/lsg/dokuwiki_out/data/pages/php/xml_to_array.txt" ;

function xml_to_arrayData($xml_page,$mode) {

//XML Data
$xml_data = file_get_contents("/home1/lsg/dokuwiki_out/data/pages/xml/".$xml_page.".txt") ;

//Creating Instance of the Class
$xmlObj    = new XmlToArray($xml_data);
//Creating Array
$arrayData = $xmlObj->createArray();

//Displaying the Array
if ($mode == 'display') {
echo "<pre>";
print_r($arrayData);
echo "</pre>";
} else {
return $arrayData ;
}

} //function xml_to_arrayData
?>