Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a34ed6838d4b29d38abd504392a4a797 > files > 466

php-manual-es-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>DomDocument-&#62;html_dump_mem</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual de PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Funciones de DOM XML"
HREF="ref.domxml.html"><LINK
REL="PREVIOUS"
TITLE="DomDocument->get_elements_by_tagname"
HREF="function.domdocument-get-elements-by-tagname.html"><LINK
REL="NEXT"
TITLE="DomDocument->xinclude"
HREF="function.domdocument-xinclude.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual de PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.domdocument-get-elements-by-tagname.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.domdocument-xinclude.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.DomDocument-html-dump-mem"
></A
>DomDocument-&#62;html_dump_mem</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN15659"
></A
><P
>    (no version information, might be only in CVS)</P
>DomDocument-&#62;html_dump_mem&nbsp;--&nbsp;
     Dumps the internal XML tree back into a string as HTML
    </DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN15662"
></A
><H2
>Description</H2
>string <B
CLASS="methodname"
>DomDocument-&#62;html_dump_mem</B
> ( void)<BR
></BR
><P
>&#13;     Creates an HTML document from the dom representation. This function
     usually is called after building a new dom document from scratch
     as in the example below. 
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN15670"
></A
><P
><B
>Ejemplo 1. Creating a simple HTML document header</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>&#60;?php
$doc = domxml_new_doc("1.0");
$root = $doc-&#62;create_element("HTML");
$root = $doc-&#62;append_child($root);
$head = $doc-&#62;create_element("HEAD");
$head = $root-&#62;append_child($head);
$title = $doc-&#62;create_element("TITLE");
$title = $head-&#62;append_child($title);
$text = $doc-&#62;create_text_node("This is the title");
$text = $title-&#62;append_child($text);
echo "&#60;PRE&#62;";
echo htmlentities($doc-&#62;html_dump_mem());
echo "&#60;/PRE&#62;";
?&#62;</PRE
></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
    </P
><P
>&#13;     See also <B
CLASS="function"
>domdocument_dump_file()</B
>,
              <B
CLASS="function"
>domdocument_html_dump_mem()</B
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.domdocument-get-elements-by-tagname.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Inicio</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.domdocument-xinclude.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>DomDocument-&#62;get_elements_by_tagname</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.domxml.html"
ACCESSKEY="U"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>DomDocument-&#62;xinclude</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>