Re: OO XML Parser
| From: | Robert Cummings | Date: | Sat, 10 Dec 2005 16:37:37 +0000 |
| Subject: | Re: OO XML Parser | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-227274@lists.php.net to get a copy of this message | ||
On Sat, 2005-12-10 at 11:25, mail wrote:
>
> xml_set_element_handler($parser, "xml_start_element", "xml_stop_element");
> //can't find function
use array notation for object method handlers:
xml_set_element_handler
(
$parser,
array( $this, 'xml_start_element' ),
array( $this, 'xml_stop_element' )
);
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com
|
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'