On Mon, 2005-12-12 at 05:40, Jochem Maas wrote:
> in this case there is an alterntive:
>
> http://php.net/manual/en/function.xml-set-object.php
>
> Norbert Wenzel wrote:
> > Robert Cummings wrote:
> >
> >> On Sat, 2005-12-10 at 11:25, mail wrote:
> >>
> >>> xml_set_element_handler($parser, "xml_
in this case there is an alterntive:
http://php.net/manual/en/function.xml-set-object.php
Norbert Wenzel wrote:
Robert Cummings wrote:
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 nota
Robert Cummings wrote:
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' ),
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_st
Hi!
I've been playing around a bit with the XML parser in PHP, but I couldn't
figure out, how to get it object oriented.
I would like to do something like this:
class MyParser {
private function xml_start_element(...) {
}
private function xml-stop_element(...) {
}
public function parse() {
[
5 matches
Mail list logo