SimpleXML XPath Namespace Support
| From: | Adam Maccabee Trachtenberg | Date: | Fri, 21 Nov 2003 21:48:47 +0000 |
| Subject: | SimpleXML XPath Namespace Support | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-5651@lists.php.net to get a copy of this message | ||
SimpleXML's XPath searching doesn't allow you to use namespaces. This
patch:
1) Automatically registers any namespace prefixes used in the
document.
2) Registers any prefixes manually added from calls registerNS().
3) Lets you refer to Qualified Names using the standard
Prefix:LocalPart syntax.
It is available at:
http://www.trachtenberg.com/patches/simplexml_xpath_ns_patch.txt
Can someone with SimpleXML karma please review and apply. See Bug
#26159 for more information.
Thanks.
-adam
--
adam@trachtenberg.com