note 94307 added to simplexmlelement.xpath
| From: | random2281 at hotmail dot com | Date: | Wed, 28 Oct 2009 15:51:14 +0000 |
| Subject: | note 94307 added to simplexmlelement.xpath | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-162182@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 64.71.164.2
Probable Submitter: 2001:480:10:64:20f:b5ff:fe8d:f5d2
----
Manual Page -- http://www.php.net/manual/en/simplexmlelement.xpath.php
Edit -- https://master.php.net/note/edit/94307
Del: integrated -- https://master.php.net/note/delete/94307/integrated
Del: useless -- https://master.php.net/note/delete/94307/useless
Del: bad code -- https://master.php.net/note/delete/94307/bad+code
Del: spam -- https://master.php.net/note/delete/94307/spam
Del: non-english -- https://master.php.net/note/delete/94307/non-english
Del: in docs -- https://master.php.net/note/delete/94307/in+docs
Del: other reasons-- https://master.php.net/note/delete/94307
Reject -- https://master.php.net/note/reject/94307
Search -- https://master.php.net/manage/user-notes.php