PHP5
This commit is contained in:
parent
4cbc52cc22
commit
489f90dc8b
|
@ -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();
|
||||
}
|
||||
}
|
||||
?>
|
Loading…
Reference in New Issue