Please... Read the PHP Manual. And see the comments. http://php.net/xml_set_element_handler
xml_set_element_handler( > $this->parser, > array(&$this,"start_tag"), > array(&$this,"end_tag") > ); > xml_set_character_data_handler( > $this->parser, > array(&$this,"tag_data") > ); > On Wed, Jul 9, 2008 at 9:36 AM, nile <[EMAIL PROTECTED]> wrote: > > In one of my models, I'm trying to parse an XML file using SAX as > follows: > > $xml_parser = xml_parser_create(); > xml_set_element_handler($xml_parser, "startTag", "endTag"); > > startTag and endTag are methods in my model. When the code runds, I > get an error saying the methods don't exist. Normally I would need to > call the method as $this->startTag, so what value do I provide when > PHP wants the method name as a string argument? > > > > -- Renan Gonçalves - Software Engineer Cell Phone: +55 11 8633 6018 MSN: [EMAIL PROTECTED] São Paulo - SP/Brazil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
