From: <ru...@us...> - 2010-06-09 08:45:32
|
Revision: 7503 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7503&view=rev Author: rurban Date: 2010-06-09 08:45:23 +0000 (Wed, 09 Jun 2010) Log Message: ----------- document problematic xml_set_object Modified Paths: -------------- trunk/lib/XmlParser.php Modified: trunk/lib/XmlParser.php =================================================================== --- trunk/lib/XmlParser.php 2010-06-09 06:23:12 UTC (rev 7502) +++ trunk/lib/XmlParser.php 2010-06-09 08:45:23 UTC (rev 7503) @@ -57,9 +57,11 @@ else $this->_parser = xml_parser_create(); - if (isset($GLOBALS['charset'])) - xml_parser_set_option($this->_parser, XML_OPTION_TARGET_ENCODING, $GLOBALS['charset']); + xml_parser_set_option($this->_parser, XML_OPTION_TARGET_ENCODING, $GLOBALS['charset']); + //This unfortunately does not work + //xml_set_object($this->_parser, &$this); + xml_set_element_handler($this->_parser, array(&$this, 'tag_open'), array(&$this, 'tag_close' )); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |