(no version information, might be only in CVS)
DomNode_>owner_document __
Returns the document this node belongs to
Description
object
DomNode_>owner_document ( void )
This function returns the document the current node belongs to_
The following example will create two identical lists of children_
Ejemplo 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()_