I've created a class XmlReader that has to parse a xml file with sax.
I've put these lines in a function parse(){
$this->xmlparser = xml_parser_create();
xml_set_element_handler($this->xmlparser, "startElement", "endElement");
and I created 2 functions
function startElement($parser, $name){...}
function endElement($parser, $name){...}
xmlparse($this->xmlparser,$this->data,$this->fh->isEof())
But it doesn't work.
I receive: Warning: Unable to call handler startElement() in .../XmlReader.php on line (line of parse
Can anybody help me please.