From 79c6aed8fb10727a016fd0ba6f34ff0db6bd7d3b Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 15 Apr 2002 15:52:47 +0000 Subject: [PATCH] - Documentation for DomNode->append_sibling git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@78255 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../functions/DomNode-append-sibling.xml | 60 +++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 reference/domxml/functions/DomNode-append-sibling.xml diff --git a/reference/domxml/functions/DomNode-append-sibling.xml b/reference/domxml/functions/DomNode-append-sibling.xml new file mode 100644 index 0000000000..41d0e0cbe1 --- /dev/null +++ b/reference/domxml/functions/DomNode-append-sibling.xml @@ -0,0 +1,60 @@ + + + + DomNode->append_sibling + + Adds new sibling to a node + + + + Description + + objectDomNode->append_sibling + objectnewnode + + + This functions appends a sibling to an existing node. + The child can be created with e.g. + DomDocument_create_element, + DomDocument_create_text etc. or simply by using any + other node. + + + Before a new sibling is added it is first duplicated. Therefore the new + child is a completely new copy which can be modified without changing the + node which was passed to this function. If the node passed has children + itself, they will be duplicated as well, which makes it quite easy to + duplicate large parts of a xml document. The return value is the + added sibling. If you plan to do further modifications on the added + sibling you must use the returned node. + + + This function has been added to provide the behaviour of + DomNode_append_child as it works till PHP 4.2. + + + See also DomNode_append_before. + + + + +