Re: PHP Newbie Classes / XML Question
| From: | Markus Fischer | Date: | Fri, 22 Mar 2002 21:47:17 +0000 |
| Subject: | Re: PHP Newbie Classes / XML Question | ||
| References: | 1 2 3 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-81629@lists.php.net to get a copy of this message | ||
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