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"), > array("stdxml","endElementHandler"); > > > This yields the wonderfully helpful error: > > Parse error: parse error in C:\Inetpub\wwwroot\PHP\stdqclass.php on line > 20
Not knowing where your line 20 is, but you miss a ')' in the line 'xml_set_element_handler' > > I believe I am following the first syntax you listed: array('class', > 'methdod'); // static Depends on how you wrote your code. -- Please always Cc to me when replying to me on the lists. GnuPG Key: http://guru.josefine.at/~mfischer/C2272BD0.asc -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php