mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-04-28 03:03:19 +02:00
99ca5507ce
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@240100 c90b9560-bf6c-de11-be94-00142212c4b1
87 lines
2.3 KiB
XML
Executable File
87 lines
2.3 KiB
XML
Executable File
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.9 $ -->
|
|
<!-- EN-Revision: 1.8 Maintainer: didou Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="function.domdocument-html-dump-mem" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>DomDocument->html_dump_mem</refname>
|
|
<refpurpose>
|
|
Convertit l'arbre XML interne en une chaîne de caractères au format HTML
|
|
</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>string</type><methodname>DomDocument->html_dump_mem</methodname>
|
|
<void/>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>DomDocument->html_dump_mem</function> crée un document HTML à partir
|
|
de sa représentation interne DOM. <function>DomDocument->dump_mem</function> est
|
|
généralement appelée après la construction d'un document à partir
|
|
de zéro, comme dans l'exemple ci-dessous.
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Création d'un en-tête de document HTML avec <function>DomDocument->html_dump_mem</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
|
|
// Création du document
|
|
$doc = domxml_new_doc("1.0");
|
|
|
|
$root = $doc->create_element("html");
|
|
$root = $doc->append_child($root);
|
|
|
|
$head = $doc->create_element("head");
|
|
$head = $root->append_child($head);
|
|
|
|
$title = $doc->create_element("title");
|
|
$title = $head->append_child($title);
|
|
|
|
$text = $doc->create_text_node("Ceci est le titre");
|
|
$text = $title->append_child($text);
|
|
|
|
echo $doc->html_dump_mem();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen role="xml">
|
|
<![CDATA[
|
|
<html><head><title>Ceci est le titre</title></head></html>
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
Voir aussi
|
|
<function>domdocument_dump_file</function> et
|
|
<function>domdocument_html_dump_mem</function>.
|
|
</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
|
|
-->
|