Re: cvs: php-src /ext/simplexml
| From: | Sterling Hughes | Date: | Sat, 17 Jan 2004 21:55:53 +0000 |
| Subject: | Re: cvs: php-src /ext/simplexml | ||
| References: | 1 2 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-25712@lists.php.net to get a copy of this message | ||
> On Sat, 17 Jan 2004, Sterling Hughes wrote:
>
> > namespace accesses are now soley URI based as opposed to prefix based.
>
> Sterling --
>
> This patch breaks xpath() because you can no longer access nodes in a
> default namespace. You *need* to register a prefix for them or XPath
> thinks you're searching for nodes in the global namespace, not the
> default namespace.
>
> Maybe we change the method to xpath_register_ns(), so it's clear this
> only works for xpath()?
>
How about we provide an array of aliases to the xpath() function? This
will avoid nasty refcounting as well.
-Sterling
--
"Reductionists like to take things apart. The rest of us are
just trying to get it together."
- Larry Wall, Programming Perl, 3rd Edition