From 73e92191f8def7881608312e8e005751f92acd00 Mon Sep 17 00:00:00 2001 From: Joey Smith Date: Mon, 16 Jul 2001 11:33:01 +0000 Subject: [PATCH] Correct the parameters to domxml_root. Note that it wants an object of class "Dom document". Add comment to example that domxml_root() is also valid. Shouldn't there be a second set of links into the domxml functions that calls them by their method names? git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@51595 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/domxml.xml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/functions/domxml.xml b/functions/domxml.xml index 1a1fe6043c..3ed24a203e 100644 --- a/functions/domxml.xml +++ b/functions/domxml.xml @@ -506,14 +506,14 @@ object domxml_root - array doc + object doc &warn.experimental.func; - Returns element node located at the root of a an DOM document. - There are actually other possible nodes like comments which are currently - disregarded. + domxml_root takes one argument, an object of class + "Dom document", and returns the root element node. There are actually + other possible nodes like comments which are currently disregarded. The following example returns just the element with name CHAPTER and @@ -550,6 +550,7 @@ if(!$dom = xmldoc($xmlstr)) { } $root = $dom->root(); +/* or $root = domxml_root($dom); */ print_r($root); ?>