DomNode->owner_document

(no version information, might be only in CVS)

DomNode->owner_document --  Retourne le document auquel appartient ce noeud DOM XML

Description

domdocument DomNode->owner_document ( void )

DomNode->owner_document() retourne le document auquel appartient ce noeud.

L'exemple suivant affiche deux listes identiques de fils.

Exemple 1. Liste les noeuds sous DOM XML

<?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);
?>

Voir aussi domnode_insert_before().

Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 18:01:47