note 73055 added to function.dom-domnode-insertbefore
| From: | justin at redwiredesign dot com | Date: | Wed, 07 Feb 2007 16:20:19 +0000 |
| Subject: | note 73055 added to function.dom-domnode-insertbefore | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-123059@lists.php.net to get a copy of this message | ||
The previous example is incorrect, and causes a DOM_NOT_FOUND error, as the child nodes are not
direct descendants of the root node.
Therefore, the line:
$parent_path = "/root";
needs to change to:
$parent_path = "/root/parent";
or
$parent_path = "//parent";
for this example to work
----
Server IP: 80.81.171.181
Probable Submitter: 87.194.98.197
----
Manual Page -- http://www.php.net/manual/en/function.dom-domnode-insertbefore.php
Edit -- https://master.php.net/note/edit/73055
Del: integrated -- https://master.php.net/note/delete/73055/integrated
Del: useless -- https://master.php.net/note/delete/73055/useless
Del: bad code -- https://master.php.net/note/delete/73055/bad+code
Del: spam -- https://master.php.net/note/delete/73055/spam
Del: non-english -- https://master.php.net/note/delete/73055/non-english
Del: in docs -- https://master.php.net/note/delete/73055/in+docs
Del: other reasons-- https://master.php.net/note/delete/73055
Reject -- https://master.php.net/note/reject/73055
Search -- https://master.php.net/manage/user-notes.php