didou Mon Dec 20 19:42:35 2004 EDT
Added files:
/phpdoc/en/reference/dom/functions dom-domdocument-savexml.xml
dom-domdocument-savehtml.xml
dom-domdocument-savehtmlfile.xml
Removed files:
/phpdoc/en/reference/dom/functions dom-domdocument-saveXML.xml
dom-domdocument-saveHTML.xml
dom-domdocument-saveHTMLFile.xml
Log:
Lowercase filenames
http://cvs.php.net/co.php/phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml?r=1.1&p=1
Index: phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml
+++ phpdoc/en/reference/dom/functions/dom-domdocument-savexml.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.dom-domdocument-savexml">
<refnamediv>
<refname>DOMDocument->saveXML()</refname>
<refpurpose>
Dumps the internal XML tree back into a string
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMDocument</classname></ooclass>
<methodsynopsis>
<type>string</type>
<methodname>saveXML</methodname>
<methodparam
choice="opt"><type>DOMNode</type><parameter>node</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Creates an XML document from the DOM representation. This function is
usually
called after building a new dom document from scratch as in the example
below.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>node</parameter></term>
<listitem>
<para>
Use this parameter to output only a specific node without XML declaration
rather than the entire document.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the XML, or &false; if an error occured.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Saving a DOM tree into a string</title>
<programlisting role="php">
<![CDATA[
<?php
$doc = new DOMDocument('1.0');
// we want a nice output
$doc->formatOutput = true;
$root = $doc->createElement('book');
$root = $doc->appendChild($root);
$title = $doc->createElement('title');
$title = $root->appendChild($title);
$text = $doc->createTextNode('This is the title');
$text = $title->appendChild($text);
echo "Retrieving all the document:\n";
echo $doc->saveXML() . "\n";
echo "Retrieving only the title part:\n";
echo $doc->saveXML($title);
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
Retrieving all the document:
<?xml version="1.0"?>
<book>
<title>This is the title</title>
</book>
Retrieving only the title part:
<title>This is the title</title>
]]>
</screen>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><xref linkend="function.dom-domdocument-save" /></member>
<member><xref linkend="function.dom-domdocument-load" /></member>
<member><xref linkend="function.dom-domdocument-loadxml" /></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml?r=1.1&p=1
Index: phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml
+++ phpdoc/en/reference/dom/functions/dom-domdocument-savehtml.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.dom-domdocument-savehtml">
<refnamediv>
<refname>DOMDocument->saveHTML()</refname>
<refpurpose>
Dumps the internal document into a string using HTML formatting
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMDocument</classname></ooclass>
<methodsynopsis>
<type>string</type>
<methodname>saveHTML</methodname>
<void/>
</methodsynopsis>
</classsynopsis>
<para>
Creates an HTML document from the DOM representation. This function is
usually
called after building a new dom document from scratch as in the example
below.
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the HTML, or &false; if an error occured.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Saving a HTML tree into a string</title>
<programlisting role="php">
<![CDATA[
<?php
$doc = new DOMDocument('1.0');
// we want a nice output
$doc->formatOutput = true;
$root = $doc->createElement('html');
$root = $doc->appendChild($root);
$head = $doc->createElement('head');
$head = $root->appendChild($head);
$title = $doc->createElement('title');
$title = $head->appendChild($title);
$text = $doc->createTextNode('This is the title');
$text = $title->appendChild($text);
echo $doc->saveHTML();
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><xref linkend="function.dom-domdocument-savehtmlfile" /></member>
<member><xref linkend="function.dom-domdocument-loadhtml" /></member>
<member><xref linkend="function.dom-domdocument-loadhtmlfile" /></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
http://cvs.php.net/co.php/phpdoc/en/reference/dom/functions/dom-domdocument-savehtmlfile.xml?r=1.1&p=1
Index: phpdoc/en/reference/dom/functions/dom-domdocument-savehtmlfile.xml
+++ phpdoc/en/reference/dom/functions/dom-domdocument-savehtmlfile.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.1 $ -->
<refentry id="function.dom-domdocument-savehtmlfile">
<refnamediv>
<refname>DOMDocument->saveHTMLFile()</refname>
<refpurpose>
Dumps the internal document into a file using HTML formatting
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<classsynopsis>
<ooclass><classname>DOMDocument</classname></ooclass>
<methodsynopsis>
<type>int</type>
<methodname>saveHTMLFile</methodname>
<methodparam><type>string</type><parameter>filename</parameter></methodparam>
</methodsynopsis>
</classsynopsis>
<para>
Creates an HTML document from the DOM representation. This function is
usually
called after building a new dom document from scratch as in the example
below.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>filename</parameter></term>
<listitem>
<para>
The path to the saved HTML document.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Returns the number of bytes written or &false; if an error occured.
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Saving a HTML tree into a file</title>
<programlisting role="php">
<![CDATA[
<?php
$doc = new DOMDocument('1.0');
// we want a nice output
$doc->formatOutput = true;
$root = $doc->createElement('html');
$root = $doc->appendChild($root);
$head = $doc->createElement('head');
$head = $root->appendChild($head);
$title = $doc->createElement('title');
$title = $head->appendChild($title);
$text = $doc->createTextNode('This is the title');
$text = $title->appendChild($text);
echo 'Wrote: ' . $doc->saveHTMLFile("/tmp/test.html") . ' bytes'; // Wrote: 129
bytes
?>
]]>
</programlisting>
</example>
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><xref linkend="function.dom-domdocument-savehtml" /></member>
<member><xref linkend="function.dom-domdocument-loadhtml" /></member>
<member><xref linkend="function.dom-domdocument-loadhtmlfile" /></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->