RE: [PHP] Building an XML Parser Class
| From: | Jay Blanchard | Date: | Thu, 07 Aug 2003 19:45:48 +0000 |
| Subject: | RE: [PHP] Building an XML Parser Class | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-158720@lists.php.net to get a copy of this message | ||
[snip]
xml_set_element_handler($this->xml_parser, '$this->startElement',
"$this->endElement");
xml_set_character_data_handler($this->xml_parser,
"$this->valueHandler");
I get an error message:
Warning: xml_parse(): Unable to call handler $this->startElement() in
c:\program files\apache group\php\My_includes\Class.xmlTranslator.php on
line 90
Now I presume this is because I am trying to call methods of my class.
[/snip]
Hmmm... I thought you might have read the other class thread. Since the
method is not public you could call it with the :: syntax.
http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php
HTH