Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread arti
Oh man, I am a complete idiot!! :-D "Andrew Lindeman" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > looks like you're missing a parenthesis at the end of the xml_set line.. > > --Andrew > > On Friday 22 March 2002 03:38 pm, arti wrote: > > So, as I unde

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread Markus Fischer
On Fri, Mar 22, 2002 at 04:38:12PM -0500, arti wrote : > So, as I understand this, I should do it like this??? > > > class stdxml > { > > function stdxml($xmlfilename) > { > > $parser=xml_parser_create(); > > xml_set_element_handler($parser, array("stdxml","startElementHandler"), > a

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread Andrew Lindeman
looks like you're missing a parenthesis at the end of the xml_set line.. --Andrew On Friday 22 March 2002 03:38 pm, arti wrote: > So, as I understand this, I should do it like this??? > > > class stdxml > { > > function stdxml($xmlfilename) > { > > $parser=xml_parser_create(); > > xm

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread arti
So, as I understand this, I should do it like this??? class stdxml { function stdxml($xmlfilename) { $parser=xml_parser_create(); xml_set_element_handler($parser, array("stdxml","startElementHandler"), array("stdxml","endElementHandler"); This yields the wonderfully helpful error:

Re: [PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread Markus Fischer
the syntax for passing methods of static classes or objects is array('class', 'methdod'); // static or array($object, 'method'); // without and array(&$object, 'method')) // by reference - Markus On Fri, Mar 22, 2002 at 04:19:42PM -0500, arti wrote :

[PHP-DEV] PHP Newbie Classes / XML Question

2002-03-22 Thread arti
I am very new to PHP and have what is probably a dumb question. I am attempting to parse an XML document with a Class. But, you have to use "xml_set_element_handler" for this to work and that means you have to pass it the names of your element handlers. How do I do this in a class??? For exam