cvs: phpdoc-fr /reference/dom/functions dom-domdocument-createcomment.xml dom-domdocument-createdocumentfragment.xml dom-domdocument-createelement.xml
dom-domdocument-createelementns.xml dom-domdocument-createentityreference.xml dom-domdocument-createprocessinginstruction.xml
dom-domdocument-createtextnode.xml dom-domdocument-getelementbyid.xml dom-domdocument-getelementsbytagname.xml
dom-domdocument-getelementsbytagnamens.xml dom-domdocument-importnode.xml dom-domdocument-normalize.xml dom-domdocument-relaxngvalidate.xml
dom-domdocument-relaxngvalidatesource.xml dom-domdocument-save.xml dom-domdocument-saveHTML.xml dom-domdocument-saveHTMLFile.xml
dom-domdocument-saveXML.xml
| From: | Mehdi Achour | Date: | Sat, 22 May 2004 13:59:31 +0000 |
| Subject: | cvs: phpdoc-fr /reference/dom/functions dom-domdocument-createcomment.xml dom-domdocument-createdocumentfragment.xml dom-domdocument-createelement.xml dom-domdocument-createelementns.xml dom-domdocument-createentityreference.xml dom-domdocument-createprocessinginstruction.xml dom-domdocument-createtextnode.xml dom-domdocument-getelementbyid.xml dom-domdocument-getelementsbytagname.xml dom-domdocument-getelementsbytagnamens.xml dom-domdocument-importnode.xml dom-domdocument-normalize.xml dom-domdocument-relaxngvalidate.xml dom-domdocument-relaxngvalidatesource.xml dom-domdocument-save.xml dom-domdocument-saveHTML.xml dom-domdocument-saveHTMLFile.xml dom-domdocument-saveXML.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2700@lists.php.net to get a copy of this message | ||
didou Sat May 22 09:59:31 2004 EDT
Added files:
/phpdoc-fr/reference/dom/functions
dom-domdocument-createcomment.xml
dom-domdocument-createdocumentfragment.xml
dom-domdocument-createelement.xml
dom-domdocument-createelementns.xml
dom-domdocument-createentityreference.xml
dom-domdocument-createprocessinginstruction.xml
dom-domdocument-createtextnode.xml
dom-domdocument-getelementbyid.xml
dom-domdocument-getelementsbytagname.xml
dom-domdocument-getelementsbytagnamens.xml
dom-domdocument-importnode.xml
dom-domdocument-normalize.xml
dom-domdocument-relaxngvalidate.xml
dom-domdocument-relaxngvalidatesource.xml
dom-domdocument-save.xml
dom-domdocument-saveHTML.xml
dom-domdocument-saveHTMLFile.xml
dom-domdocument-saveXML.xml
Log:
new functions
http://cvs.php.net/co.php/phpdoc-fr/reference/dom/functions/dom-domdocument-createcomment.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createcomment.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createcomment.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createcomment"> <refnamediv> <refname>DOMDocument->createComment</refname> <refpurpose>Crée un nouveau noeud de commentaire</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createComment</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMComment</classname>. Le contenu du commentaire est la valeur de <parameter>data</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>. </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-fr/reference/dom/functions/dom-domdocument-createdocumentfragment.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createdocumentfragment.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createdocumentfragment.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createdocumentfragment"> <refnamediv> <refname>DOMDocument->createDocumentFragment</refname> <refpurpose>Crée un nouveau fragment de document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createDocumentFragment</methodname> <void/> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMAttr</classname>. Le nom de l'attribut est la valeur du premier paramètre. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </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-fr/reference/dom/functions/dom-domdocument-createelement.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createelement.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createelement.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createelement"> <refnamediv> <refname>DOMDocument->createElement</refname> <refpurpose>Crée un nouveau noeud élément</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createElement</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMElement</classname>. Le nom de la balise est donné dans <parameter>name</parameter>. Vous pouvez aussi spécifier une valeur pour le nouvel élément avec <parameter>value</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domdocument-createelementns">DOMDocument->createElementNS()</link>, <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>, <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>. </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-fr/reference/dom/functions/dom-domdocument-createelementns.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createelementns.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createelementns.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createelementns"> <refnamediv> <refname>DOMDocument->createElementNS</refname> <refpurpose> Crée un nouveau noeud élément avec un espace de nom associé </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DomDocument->createElementNS</methodname> <methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam> <methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMElement</classname>. Le nom de la balise et le préfixe de l'élément est déterminé par la valeur du paramètre passé <parameter>qualifiedName</parameter>. L'URI de l'espace de nom est la valeur de <parameter>namespaceURI</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createattributens">DOMDocument->createAttributeNS()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-createentityreference.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createentityreference.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createentityreference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createentityreference"> <refnamediv> <refname>DOMDocument->createEntityReference</refname> <refpurpose>Crée un nouveau noeud de référence d'entité</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createEntityReference</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMEntityReference</classname>. Le contenu de la référence d'entité est la valeur de <parameter>name</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status; ready --> <refentry id="function.dom-domdocument-createprocessinginstruction"> <refnamediv> <refname>DOMDocument->createProcessingInstruction</refname> <refpurpose>Crée un nouveau noeud PI</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createProcessingInstruction</methodname> <methodparam><type>string</type><parameter>target</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMProcessingInstruction</classname>. Le content du PI est la valeur du paramètre <parameter>data</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-createtextnode.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createtextnode.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createtextnode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createtextnode"> <refnamediv> <refname>DOMDocument->createTextNode</refname> <refpurpose>Crée un nouveau noeud de texte</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createTextNode</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMText</classname>. Le texte est la valeur du paramètre <parameter>data</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-getelementbyid.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-getelementbyid.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-getelementbyid.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-getelementbyid"> <refnamediv> <refname>DOMDocument->getElementById</refname> <refpurpose>Cherche un élément avec un certain identifiant.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->getElementById</methodname> <methodparam><type>string</type><parameter>elementId</parameter></methodparam> </methodsynopsis> <para> Cette fonction est similaire à <link linkend="function.dom-domdocument-getelementsbytagname">DOMDocument->getElementsByTagName()</link> mais cherche un élément avec un identifiant donné. Selon les standards DOM, cela requière une DTD qui définit que l'attribut ID est de type ID. </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-fr/reference/dom/functions/dom-domdocument-getelementsbytagname.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagname.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagname.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-getelementsbytagname"> <refnamediv> <refname>DOMDocument->getElementsByTagName</refname> <refpurpose>Cherche tous les éléments quit ont le nom de balise donné.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->getElementsByTagName</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMNodeList</classname> contenant les éléments dont les noms des balises sont identiques à <parameter>name</parameter>. Utilisez "*" comme nom pour retourner tout les éléments du document. </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-fr/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-getelementsbytagnamens"> <refnamediv> <refname>DOMDocument->getElementsByTagNameNS</refname> <refpurpose> Cherche tous les éléments du document selon un nom de balise et un espace de nom spécifique </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->getElementsByTagNameNS</methodname> <methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam> <methodparam><type>string</type><parameter>localName</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMNodeList</classname> contenant les éléments dont les noms des balises sont identiques à <parameter>localName</parameter> et dans l'espace de noms <parameter>namespaceURI</parameter>. Utilisez "*" comme nom pour retourner tout les éléments du document. </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-fr/reference/dom/functions/dom-domdocument-importnode.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-importnode.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-importnode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-importnode"> <refnamediv> <refname>DOMDocument->importNode</refname> <refpurpose>Importe un noeud dans le document courant.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->importNode</methodname> <methodparam><type>object</type><parameter>importedNode</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>deep</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une copie du noeud à importer et l'associe avec le document courant. <classname>DOMExcpetion</classname> est lancée si le noeud ne peut être importé. </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-fr/reference/dom/functions/dom-domdocument-normalize.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-normalize.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-normalize.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-normalize"> <refnamediv> <refname>DOMDocument->normalize</refname> <refpurpose> Normalise le document. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>DOMDocument->normalize</methodname> <void/> </methodsynopsis> <para> Normalise le document. </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-fr/reference/dom/functions/dom-domdocument-relaxngvalidate.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidate.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidate.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-relaxngvalidate"> <refnamediv> <refname>DOMDocument->relaxNGValidate</refname> <refpurpose> Performe une validation relaxNG sur le document. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>DOMDocument->relaxNGValidate</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Performe une validation relaxNG sur le document selon le fichier défini par <parameter>filename</parameter>. </para> <para> Voir aussi <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>, <link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>, <link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link> et <link linkend="function.dom-domdocument-relaxngvalidatesource">DOMDocument->relaxNGValidateSource()</link>. </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-fr/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-relaxngvalidatesource"> <refnamediv> <refname>DOMDocument->relaxNGValidateSource</refname> <refpurpose> Performe une validation relaxNG sur le document. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>DOMDocument->relaxNGValidateSource</methodname> <methodparam><type>string</type><parameter>source</parameter></methodparam> </methodsynopsis> <para> Performe une validation relaxNG sur le document selon le fichier définit dans la chaîne <parameter>source</parameter>. </para> <para> Voir aussi <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>, <link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>, <link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link> et <link linkend="function.dom-domdocument-relaxngvalidate">DOMDocument->relaxNGValidate()</link>. </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-fr/reference/dom/functions/dom-domdocument-save.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-save.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-save.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-save"> <refnamediv> <refname>DOMDocument->save</refname> <refpurpose> Dumps the internal XML tree back into a file </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>DOMDocument->save</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Crée un document XML depuis la représentation DOM. Le nombre d'octets écris est retourné. Cette fonction est habituellement appelée après la création d'un nouveau document DOM, comme dans l'exemple suivant. document from scratch as in the example below. </para> <para> <example> <title>Création d'un simple en-tête de document XML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); $doc->save("/tmp/test.xml"); ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>, <link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link> et <link linkend="function.dom-domdocument-savexml">DOMDocument->saveXML()</link>. </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-fr/reference/dom/functions/dom-domdocument-saveHTML.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTML.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTML.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-savehtml"> <refnamediv> <refname>DOMDocument->saveHTML</refname> <refpurpose> Enregistre le document interne dans une chaîne en HTML </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>DOMDocument->saveHTML</methodname> <void/> </methodsynopsis> <para> Crée un document HTML depuis la représentation DOM. Cette fonction est souvent appelée après la construction d'un nouveau document DOM, comme dans cet exemple : </para> <para> <example> <title>Création d'un simple en-tête de document HTML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); echo "<PRE>"; echo $doc->saveHTML(); echo "</PRE>"; ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>, <link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link> et <link linkend="function.dom-domdocument-savehtmlfile">DOMDocument->saveHTMLFile()</link>. </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-fr/reference/dom/functions/dom-domdocument-saveHTMLFile.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTMLFile.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTMLFile.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-savehtmlfile"> <refnamediv> <refname>DOMDocument->saveHTMLFile</refname> <refpurpose> Enregistre le document interne dans un fichier HTML </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>DOMDocument->saveHTMLFile</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Crée un document HTML depuis la représentation DOM. Cette fonction est souvent appelée après la construction d'un nouveau document DOM, comme dans cet exemple : </para> <para> <example> <title>Création d'un simple ent-tête de document HTML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); $doc->saveHTMLFile("/tmp/test.hmtl"); ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>, <link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link> et <link linkend="function.dom-domdocument-savehtml">DOMDocument->saveHTML()</link>. </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-fr/reference/dom/functions/dom-domdocument-saveXML.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-saveXML.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-saveXML.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-savexml"> <refnamediv> <refname>DOMDocument->saveXML</refname> <refpurpose>Enregistre l'arbre XML interne dans une chaîne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>DOMDocument->saveXML</methodname> <methodparam choice="opt"><type>object</type><parameter>node</parameter></methodparam> </methodsynopsis> <para> Crée un document XML depuis la représentation DOM. Cette fonction est souvent appelée après la construction d'un nouveau document DOM, comme dans l'exemple suivant : <parameter>node</parameter> est utilisé pour afficher seulement le noeud au lieu de tout le document. </para> <para> <example> <title>Création d'un simple en-tête de document HTML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); echo "<pre>"; echo htmlentities($doc->saveXML()); echo "</pre>"; ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>, <link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link> and <link linkend="function.dom-domdocument-save">DOMDocument->save()</link>. </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-fr/reference/dom/functions/dom-domdocument-createcomment.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createcomment.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createcomment.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createcomment"> <refnamediv> <refname>DOMDocument->createComment</refname> <refpurpose>Crée un nouveau noeud de commentaire</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createComment</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMComment</classname>. Le contenu du commentaire est la valeur de <parameter>data</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>. </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-fr/reference/dom/functions/dom-domdocument-createdocumentfragment.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createdocumentfragment.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createdocumentfragment.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createdocumentfragment"> <refnamediv> <refname>DOMDocument->createDocumentFragment</refname> <refpurpose>Crée un nouveau fragment de document</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createDocumentFragment</methodname> <void/> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMAttr</classname>. Le nom de l'attribut est la valeur du premier paramètre. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </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-fr/reference/dom/functions/dom-domdocument-createelement.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createelement.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createelement.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createelement"> <refnamediv> <refname>DOMDocument->createElement</refname> <refpurpose>Crée un nouveau noeud élément</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createElement</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMElement</classname>. Le nom de la balise est donné dans <parameter>name</parameter>. Vous pouvez aussi spécifier une valeur pour le nouvel élément avec <parameter>value</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domdocument-createelementns">DOMDocument->createElementNS()</link>, <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createtextnode">DOMDocument->createTextNode()</link>, <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createprocessinginstruction">DOMDocument->createProcessingInstruction()</link>. </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-fr/reference/dom/functions/dom-domdocument-createelementns.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createelementns.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createelementns.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createelementns"> <refnamediv> <refname>DOMDocument->createElementNS</refname> <refpurpose> Crée un nouveau noeud élément avec un espace de nom associé </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DomDocument->createElementNS</methodname> <methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam> <methodparam><type>string</type><parameter>qualifiedName</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMElement</classname>. Le nom de la balise et le préfixe de l'élément est déterminé par la valeur du paramètre passé <parameter>qualifiedName</parameter>. L'URI de l'espace de nom est la valeur de <parameter>namespaceURI</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createattributens">DOMDocument->createAttributeNS()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-createentityreference.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createentityreference.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createentityreference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createentityreference"> <refnamediv> <refname>DOMDocument->createEntityReference</refname> <refpurpose>Crée un nouveau noeud de référence d'entité</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createEntityReference</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMEntityReference</classname>. Le contenu de la référence d'entité est la valeur de <parameter>name</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createprocessinginstruction.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status; ready --> <refentry id="function.dom-domdocument-createprocessinginstruction"> <refnamediv> <refname>DOMDocument->createProcessingInstruction</refname> <refpurpose>Crée un nouveau noeud PI</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createProcessingInstruction</methodname> <methodparam><type>string</type><parameter>target</parameter></methodparam> <methodparam choice="opt"><type>string</type><parameter>data</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMProcessingInstruction</classname>. Le content du PI est la valeur du paramètre <parameter>data</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-createtextnode.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-createtextnode.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-createtextnode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-createtextnode"> <refnamediv> <refname>DOMDocument->createTextNode</refname> <refpurpose>Crée un nouveau noeud de texte</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->createTextNode</methodname> <methodparam><type>string</type><parameter>content</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMText</classname>. Le texte est la valeur du paramètre <parameter>data</parameter>. &dom.node.inserted; </para> <para> La valeur de retour est &false, si une erreur survient. </para> <para> Voir aussi <link linkend="function.dom-domnode-appendchild">DOMNode->appendChild()</link>, <link linkend="function.dom-domdocument-createelement">DOMDocument->createElement()</link>, <link linkend="function.dom-domdocument-createattribute">DOMDocument->createAttribute()</link> et <link linkend="function.dom-domdocument-createcomment">DOMDocument->createComment()</link>. </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-fr/reference/dom/functions/dom-domdocument-getelementbyid.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-getelementbyid.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-getelementbyid.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-getelementbyid"> <refnamediv> <refname>DOMDocument->getElementById</refname> <refpurpose>Cherche un élément avec un certain identifiant.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->getElementById</methodname> <methodparam><type>string</type><parameter>elementId</parameter></methodparam> </methodsynopsis> <para> Cette fonction est similaire à <link linkend="function.dom-domdocument-getelementsbytagname">DOMDocument->getElementsByTagName()</link> mais cherche un élément avec un identifiant donné. Selon les standards DOM, cela requière une DTD qui définit que l'attribut ID est de type ID. </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-fr/reference/dom/functions/dom-domdocument-getelementsbytagname.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagname.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagname.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-getelementsbytagname"> <refnamediv> <refname>DOMDocument->getElementsByTagName</refname> <refpurpose>Cherche tous les éléments quit ont le nom de balise donné.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->getElementsByTagName</methodname> <methodparam><type>string</type><parameter>name</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMNodeList</classname> contenant les éléments dont les noms des balises sont identiques à <parameter>name</parameter>. Utilisez "*" comme nom pour retourner tout les éléments du document. </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-fr/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-getelementsbytagnamens.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-getelementsbytagnamens"> <refnamediv> <refname>DOMDocument->getElementsByTagNameNS</refname> <refpurpose> Cherche tous les éléments du document selon un nom de balise et un espace de nom spécifique </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->getElementsByTagNameNS</methodname> <methodparam><type>string</type><parameter>namespaceURI</parameter></methodparam> <methodparam><type>string</type><parameter>localName</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une nouvelle instance de la classe <classname>DOMNodeList</classname> contenant les éléments dont les noms des balises sont identiques à <parameter>localName</parameter> et dans l'espace de noms <parameter>namespaceURI</parameter>. Utilisez "*" comme nom pour retourner tout les éléments du document. </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-fr/reference/dom/functions/dom-domdocument-importnode.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-importnode.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-importnode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-importnode"> <refnamediv> <refname>DOMDocument->importNode</refname> <refpurpose>Importe un noeud dans le document courant.</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>object</type><methodname>DOMDocument->importNode</methodname> <methodparam><type>object</type><parameter>importedNode</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>deep</parameter></methodparam> </methodsynopsis> <para> Cette fonction retourne une copie du noeud à importer et l'associe avec le document courant. <classname>DOMExcpetion</classname> est lancée si le noeud ne peut être importé. </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-fr/reference/dom/functions/dom-domdocument-normalize.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-normalize.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-normalize.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-normalize"> <refnamediv> <refname>DOMDocument->normalize</refname> <refpurpose> Normalise le document. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>void</type><methodname>DOMDocument->normalize</methodname> <void/> </methodsynopsis> <para> Normalise le document. </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-fr/reference/dom/functions/dom-domdocument-relaxngvalidate.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidate.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidate.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-relaxngvalidate"> <refnamediv> <refname>DOMDocument->relaxNGValidate</refname> <refpurpose> Performe une validation relaxNG sur le document. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>DOMDocument->relaxNGValidate</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Performe une validation relaxNG sur le document selon le fichier défini par <parameter>filename</parameter>. </para> <para> Voir aussi <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>, <link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>, <link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link> et <link linkend="function.dom-domdocument-relaxngvalidatesource">DOMDocument->relaxNGValidateSource()</link>. </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-fr/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-relaxngvalidatesource.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-relaxngvalidatesource"> <refnamediv> <refname>DOMDocument->relaxNGValidateSource</refname> <refpurpose> Performe une validation relaxNG sur le document. </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>DOMDocument->relaxNGValidateSource</methodname> <methodparam><type>string</type><parameter>source</parameter></methodparam> </methodsynopsis> <para> Performe une validation relaxNG sur le document selon le fichier définit dans la chaîne <parameter>source</parameter>. </para> <para> Voir aussi <link linkend="function.dom-domdocument-validate">DOMDocument->validate()</link>, <link linkend="function.dom-domdocument-schemavalidate">DOMDocument->schemaValidate()</link>, <link linkend="function.dom-domdocument-schemavalidatesource">DOMDocument->schemaValidateSource()</link> et <link linkend="function.dom-domdocument-relaxngvalidate">DOMDocument->relaxNGValidate()</link>. </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-fr/reference/dom/functions/dom-domdocument-save.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-save.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-save.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-save"> <refnamediv> <refname>DOMDocument->save</refname> <refpurpose> Dumps the internal XML tree back into a file </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>int</type><methodname>DOMDocument->save</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Crée un document XML depuis la représentation DOM. Le nombre d'octets écris est retourné. Cette fonction est habituellement appelée après la création d'un nouveau document DOM, comme dans l'exemple suivant. document from scratch as in the example below. </para> <para> <example> <title>Création d'un simple en-tête de document XML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); $doc->save("/tmp/test.xml"); ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>, <link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link> et <link linkend="function.dom-domdocument-savexml">DOMDocument->saveXML()</link>. </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-fr/reference/dom/functions/dom-domdocument-saveHTML.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTML.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTML.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-savehtml"> <refnamediv> <refname>DOMDocument->saveHTML</refname> <refpurpose> Enregistre le document interne dans une chaîne en HTML </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>DOMDocument->saveHTML</methodname> <void/> </methodsynopsis> <para> Crée un document HTML depuis la représentation DOM. Cette fonction est souvent appelée après la construction d'un nouveau document DOM, comme dans cet exemple : </para> <para> <example> <title>Création d'un simple en-tête de document HTML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); echo "<PRE>"; echo $doc->saveHTML(); echo "</PRE>"; ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>, <link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link> et <link linkend="function.dom-domdocument-savehtmlfile">DOMDocument->saveHTMLFile()</link>. </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-fr/reference/dom/functions/dom-domdocument-saveHTMLFile.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTMLFile.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-saveHTMLFile.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-savehtmlfile"> <refnamediv> <refname>DOMDocument->saveHTMLFile</refname> <refpurpose> Enregistre le document interne dans un fichier HTML </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>DOMDocument->saveHTMLFile</methodname> <methodparam><type>string</type><parameter>filename</parameter></methodparam> </methodsynopsis> <para> Crée un document HTML depuis la représentation DOM. Cette fonction est souvent appelée après la construction d'un nouveau document DOM, comme dans cet exemple : </para> <para> <example> <title>Création d'un simple ent-tête de document HTML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); $doc->saveHTMLFile("/tmp/test.hmtl"); ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-loadhtml">DOMDocument->loadHTML()</link>, <link linkend="function.dom-domdocument-loadhtmlfile">DOMDocument->loadHTMLFile()</link> et <link linkend="function.dom-domdocument-savehtml">DOMDocument->saveHTML()</link>. </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-fr/reference/dom/functions/dom-domdocument-saveXML.xml?r=1.1&p=1 Index: phpdoc-fr/reference/dom/functions/dom-domdocument-saveXML.xml +++ phpdoc-fr/reference/dom/functions/dom-domdocument-saveXML.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: didou Status: ready --> <refentry id="function.dom-domdocument-savexml"> <refnamediv> <refname>DOMDocument->saveXML</refname> <refpurpose>Enregistre l'arbre XML interne dans une chaîne</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>DOMDocument->saveXML</methodname> <methodparam choice="opt"><type>object</type><parameter>node</parameter></methodparam> </methodsynopsis> <para> Crée un document XML depuis la représentation DOM. Cette fonction est souvent appelée après la construction d'un nouveau document DOM, comme dans l'exemple suivant : <parameter>node</parameter> est utilisé pour afficher seulement le noeud au lieu de tout le document. </para> <para> <example> <title>Création d'un simple en-tête de document HTML</title> <programlisting role="php"> <![CDATA[ <?php $doc = new DOMDocument("1.0"); $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("Ceci est le titre"); $text = $title->appendChild($text); echo "<pre>"; echo htmlentities($doc->saveXML()); echo "</pre>"; ?> ]]> </programlisting> </example> </para> <para> Voir aussi <link linkend="function.dom-domdocument-load">DOMDocument->load()</link>, <link linkend="function.dom-domdocument-loadxml">DOMDocument->loadXML()</link> and <link linkend="function.dom-domdocument-save">DOMDocument->save()</link>. </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 -->