note 94307 deleted from simplexmlelement.xpath by danbrown
| From: | danbrown@php.net | Date: | Wed, 28 Oct 2009 16:06:05 +0000 |
| Subject: | note 94307 deleted from simplexmlelement.xpath by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-162189@lists.php.net to get a copy of this message | ||
Note Submitter: random2281 at hotmail dot com
----
In jchris dot fillionr's code snippet, it should be noted that the first relative path query
"c/d" is not expected to work because the current node is the root ("a") node
and the appropriate relative path would be "b/c/d" or generally "//c/d" as
mentioned later in his/her post.
This may have been the intention with that example, but it wasn't immediately clear to me and I
hope this explanation will clear up any confusion for others.