This commit is contained in:
Roland Gruber 2007-10-13 17:46:56 +00:00
parent 4cbc52cc22
commit 489f90dc8b
1 changed files with 4 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class xmlParser {
/**
*
*/
var $xmlParser;
private $xmlParser;
/**
*
@ -59,9 +59,12 @@ class xmlParser {
*/
function parse($filename) {
if(file_exists($filename)) {
$xmlStructure = array();
$xmlIndex = array();
xml_parse_into_struct($this->xmlParser,implode("\n",file($filename)),$xmlStructure,$xmlIndex);
return array($xmlStructure,$xmlIndex);
}
return array();
}
}
?>