<?php function _readXML(){ $this->parser = xml_parser_create(); $this->_xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, false); $this->_xml_set_element_handler($this->parser, "_readXMLStart", "_readXMLFinish"); } } $this->_xml_parser_free($this->parser); } ?>
Mam taką funkcję. W klasie wstawiłem oczywiście wszystkie potrzebne dane (var...), są stworzone funkcje _readXMLStart i _readXMLFinish ale parser krzyczy mi tak:
Warning: xml_parse() [function.xml-parse]: Unable to call handler _readXMLStart()
Czy ma ktoś jakiś pomysł o co chodzi?