Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5651 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63459 invoked by uid 1010); 21 Nov 2003 21:48:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 63425 invoked from network); 21 Nov 2003 21:48:47 -0000 Received: from unknown (HELO miranda.org) (209.58.150.153) by pb1.pair.com with SMTP; 21 Nov 2003 21:48:47 -0000 Received: (qmail 22320 invoked by uid 546); 21 Nov 2003 21:48:47 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 21 Nov 2003 21:48:47 -0000 Date: Fri, 21 Nov 2003 16:48:47 -0500 (EST) X-X-Sender: adam@miranda.org To: internals@lists.php.net Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: SimpleXML XPath Namespace Support From: adam@trachtenberg.com (Adam Maccabee Trachtenberg) 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