diff options
Diffstat (limited to 'it_xml.class')
-rw-r--r-- | it_xml.class | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/it_xml.class b/it_xml.class index 7765054..f74f743 100644 --- a/it_xml.class +++ b/it_xml.class @@ -61,9 +61,8 @@ function from_xml($xmldata, $p) $this->_stack = array(); unset($this->error); $parser = xml_parser_create(); - xml_set_object($parser, $this); - xml_set_element_handler($parser, "start_element", "end_element"); - xml_set_character_data_handler($parser, "character_data"); + xml_set_element_handler($parser, [$this, "start_element"], [$this, "end_element"]); + xml_set_character_data_handler($parser, [$this, "character_data"]); xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, $this->_p['encoding']); |