Re: domxml extension
| From: | Christian Stocker | Date: | Sun, 05 May 2002 15:48:32 +0000 |
| Subject: | Re: domxml extension | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-83719@lists.php.net to get a copy of this message | ||
On Sun, 5 May 2002, brad lafountain wrote:
> Hello,
>
> I was wondering who was maintaing the dom xml extension.
>
> I was just testing out some stuff.
>
> -------------------------------------
> $xml = new DomElement('asdf');
> just doesn't work..
>
> $xml = new DomElement('asdf');
> $real_element = $xml->domelement('asdf');
> works...
>
> I looked into this.. Two reasons this is happening..
>
> 1)
> The register_class_entry has "DomElement" not "domelement" (all the classes
> are
>
> like that).
> So that is why the constructor isn't being called.
>
> 2)
> The constructor returns a zval instead of making the addintions to the current
> object.
you should use $xml->create_element("bla"), which does the second thing
for you.
chregu