PHP 忒聊
綴豖
ヶ輛
DomNode- owner_document
(no version information, might be only in CVS)
Description
This function returns the document the current node belongs to.
The following example will create two identical lists of children.
瞰赽 1. Finding the document of a node
?php $doc = domxml_new_doc("1.0"); $node = $doc- create_element("para"); $node = $doc- append_child($node); $children = $doc- children(); print_r($children); $doc2 = $node- owner_document(); $children = $doc2- children(); print_r($children);?
See also DomNode_insert_before().
綴豖
れ萸
ヶ輛
DomNode- node_value
奻珨撰
DomNode- parent_node