Re: about domxml api-change in 4.0.7

From: Date: Thu, 23 Aug 2001 12:41:12 +0000
Subject: Re: about domxml api-change in 4.0.7
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64156@lists.php.net to get a copy of this message
I've since looked at it, and I fixed #1 and #3. The other two issues are not going away any time soon... (that is, "2" and the issue Christian raised). On Mon, 20 Aug 2001, Christian Stocker wrote the following to...: > On Mon, 20 Aug 2001, Colin Viebrock wrote: > > > FWIW, I've needed to hack my code to handle three differences between > > the 2 different API versions. To be honest, I can't keep track of > > which API was in which release of PHP, so I'll just call them API A) > > and API B). > > > > 1) Names of tags: > > API A) $node->name > > API B) $node->tagname > > > > 2) Tag attribute value: > > API A) $node->children[0]->content > > API B) $node->value > > > > 3) Is a node a text node: > > API A) $node->type == XML_TEXT_NODE > > API B) strtolower(get_class($node)) == 'domtext' > > i have one more :) > > content of a node > > API A) $node->content > API B) $node->children()->content (that does not work this way, but you > get the idea...) > > > I haven't installed libxml 2.4.2 and PHP 4.0.7rc1 yet, but I'm > > wondering if someone can tell me which API version is in use? This > > script should tell you: > > it's API B) as far as i know > > chregu > > > >

« previous php.dev (#64156) next »