didou           Mon Apr 17 12:59:17 2006 UTC

  Modified files:              
    /phpdoc/en/reference/dom/functions  dom-domdocument-load.xml 
                                        dom-domdocument-loadhtml.xml 
                                        dom-domdocument-loadhtmlfile.xml 
                                        dom-domdocument-loadxml.xml 
                                        dom-domdocument-savehtml.xml 
                                        dom-domdocument-savexml.xml 
  Log:
  Remove static calls which are non E_STRICT compliant
  formatOutput doesn't affect DomDocument->saveHTML()
  
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-load.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-load.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-load.xml:1.8 
phpdoc/en/reference/dom/functions/dom-domdocument-load.xml:1.9
--- phpdoc/en/reference/dom/functions/dom-domdocument-load.xml:1.8      Wed Jun 
22 10:39:09 2005
+++ phpdoc/en/reference/dom/functions/dom-domdocument-load.xml  Mon Apr 17 
12:59:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.dom-domdocument-load">
  <refnamediv>
   <refname>DOMDocument->load()</refname>
@@ -56,9 +56,6 @@
     <programlisting role="php">
 <![CDATA[
 <?php
-$doc = DOMDocument::load('book.xml');
-echo $doc->saveXML();
-
 $doc = new DOMDocument();
 $doc->load('book.xml');
 echo $doc->saveXML();
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-loadhtml.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-loadhtml.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-loadhtml.xml:1.6 
phpdoc/en/reference/dom/functions/dom-domdocument-loadhtml.xml:1.7
--- phpdoc/en/reference/dom/functions/dom-domdocument-loadhtml.xml:1.6  Mon Jan 
17 08:41:33 2005
+++ phpdoc/en/reference/dom/functions/dom-domdocument-loadhtml.xml      Mon Apr 
17 12:59:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="function.dom-domdocument-loadhtml">
  <refnamediv>
   <refname>DOMDocument->loadHTML()</refname>
@@ -54,9 +54,6 @@
     <programlisting role="php">
 <![CDATA[
 <?php
-$doc = DOMDocument::loadHTML("<html><body>Test<br></body></html>");
-echo $doc->saveHTML();
-
 $doc = new DOMDocument();
 $doc->loadHTML("<html><body>Test<br></body></html>");
 echo $doc->saveHTML();
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-loadhtmlfile.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-loadhtmlfile.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-loadhtmlfile.xml:1.6 
phpdoc/en/reference/dom/functions/dom-domdocument-loadhtmlfile.xml:1.7
--- phpdoc/en/reference/dom/functions/dom-domdocument-loadhtmlfile.xml:1.6      
Mon Jan 17 08:41:33 2005
+++ phpdoc/en/reference/dom/functions/dom-domdocument-loadhtmlfile.xml  Mon Apr 
17 12:59:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="function.dom-domdocument-loadhtmlfile">
  <refnamediv>
   <refname>DOMDocument->loadHTMLFile()</refname>
@@ -57,12 +57,9 @@
     <programlisting role="php">
 <![CDATA[
 <?php
-$doc = DOMDocument::loadHTMLFile("filename.html");
-print $doc->saveHTML();
-
 $doc = new DOMDocument();
 $doc->loadHTMLFile("filename.html");
-print $doc->saveHTML();
+echo $doc->saveHTML();
 ?>
 ]]>
     </programlisting>
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml?r1=1.8&r2=1.9&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml:1.8 
phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml:1.9
--- phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml:1.8   Wed Jun 
22 10:39:09 2005
+++ phpdoc/en/reference/dom/functions/dom-domdocument-loadxml.xml       Mon Apr 
17 12:59:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <refentry id="function.dom-domdocument-loadxml">
  <refnamediv>
   <refname>DOMDocument->loadXML()</refname>
@@ -56,9 +56,6 @@
     <programlisting role="php">
 <![CDATA[
 <?php
-$doc = DOMDocument::loadXML('<root><node/></root>');
-echo $doc->saveXML();
-
 $doc = new DOMDocument();
 $doc->loadXML('<root><node/></root>');
 echo $doc->saveXML();
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml?r1=1.3&r2=1.4&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml:1.3 
phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml:1.4
--- phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml:1.3  Mon Feb 
14 04:13:15 2005
+++ phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml      Mon Apr 
17 12:59:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <refentry id="function.dom-domdocument-savehtml">
  <refnamediv>
   <refname>DOMDocument->saveHTML()</refname>
@@ -37,8 +37,6 @@
 <?php
 
 $doc = new DOMDocument('1.0');
-// we want a nice output
-$doc->formatOutput = true;
 
 $root = $doc->createElement('html');
 $root = $doc->appendChild($root);
http://cvs.php.net/viewcvs.cgi/phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml?r1=1.6&r2=1.7&diff_format=u
Index: phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml
diff -u phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml:1.6 
phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml:1.7
--- phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml:1.6   Thu Sep 
 8 12:02:24 2005
+++ phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml       Mon Apr 
17 12:59:17 2006
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.6 $ -->
+<!-- $Revision: 1.7 $ -->
 <refentry id="function.dom-domdocument-savexml">
  <refnamediv>
   <refname>DOMDocument->saveXML()</refname>
@@ -117,10 +117,10 @@
 $text = $doc->createTextNode('This is the title');
 $text = $title->appendChild($text);
 
-echo "Retrieving all the document:\n";
+echo "Saving all the document:\n";
 echo $doc->saveXML() . "\n";
 
-echo "Retrieving only the title part:\n";
+echo "Saving only the title part:\n";
 echo $doc->saveXML($title);
 
 ?>
@@ -129,13 +129,13 @@
     &example.outputs;
     <screen>
 <![CDATA[
-Retrieving all the document:
+Saving all the document:
 <?xml version="1.0"?>
 <book>
   <title>This is the title</title>
 </book>
 
-Retrieving only the title part:
+Saving only the title part:
 <title>This is the title</title>
 ]]>
     </screen>

Reply via email to