joey            Mon Jul 16 07:33:01 2001 EDT

  Modified files:              
    /phpdoc/en/functions        domxml.xml 
  Log:
  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?
  
  
Index: phpdoc/en/functions/domxml.xml
diff -u phpdoc/en/functions/domxml.xml:1.15 phpdoc/en/functions/domxml.xml:1.16
--- phpdoc/en/functions/domxml.xml:1.15 Sun Jul  8 09:01:18 2001
+++ phpdoc/en/functions/domxml.xml      Mon Jul 16 07:33:01 2001
@@ -506,14 +506,14 @@
     <funcsynopsis>
      <funcprototype>
       <funcdef>object <function>domxml_root</function></funcdef>
-      <paramdef>array <parameter>doc</parameter></paramdef>
+      <paramdef>object <parameter>doc</parameter></paramdef>
      </funcprototype>
     </funcsynopsis>
        &warn.experimental.func;
     <para>
-     Returns element node located at the root of a an DOM document.
-     There are actually other possible nodes like comments which are currently
-     disregarded.
+     <function>domxml_root</function> 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.
     </para>
     <para>
      The following example returns just the element with name CHAPTER and
@@ -550,6 +550,7 @@
 }
 
 $root = $dom->root();
+/* or $root = domxml_root($dom); */
 print_r($root);
 ?>
       </programlisting>


Reply via email to