svn: /phpdoc/es/trunk/reference/dom/domcdatasection/ construct.xml

From: Date: Wed, 05 Oct 2011 04:38:50 +0000
Subject: svn: /phpdoc/es/trunk/reference/dom/domcdatasection/ construct.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-5039@lists.php.net to get a copy of this message
andresdzphp Wed, 05 Oct 2011 04:38:50 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=317752 Log: updated to the most recent version. Changed paths: U phpdoc/es/trunk/reference/dom/domcdatasection/construct.xml Modified: phpdoc/es/trunk/reference/dom/domcdatasection/construct.xml =================================================================== --- phpdoc/es/trunk/reference/dom/domcdatasection/construct.xml 2011-10-05 04:33:18 UTC (rev 317751) +++ phpdoc/es/trunk/reference/dom/domcdatasection/construct.xml 2011-10-05 04:38:50 UTC (rev 317752) @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 304887 Maintainer: seros Status: ready --> +<!-- EN-Revision: 317683 Maintainer: andresdzphp Status: ready --> +<!-- Reviewed: no --> <refentry xml:id="domcdatasection.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -39,18 +40,26 @@ <para> <example> <title>Crear un nuevo objeto DOMCdataSection</title> - <programlisting role="php"> + <programlisting role="php"> <![CDATA[ <?php -$dom = new DOMDocument('1.0', 'iso-8859-1'); -$elemento = $dom->appendChild(new DOMElement('root')); -$texto = $elemento->appendChild(new DOMCdataSection('root value')); -echo $dom->saveXML(); /* <?xml version="1.0" encoding="utf-8"?><root><![CDATA[root value]]></root> */ +$dom = new DOMDocument('1.0', 'utf-8'); +$element = $dom->appendChild(new DOMElement('root')); +$text = $element->appendChild(new DOMCdataSection('root value')); +echo $dom->saveXML(); ?> ]]> </programlisting> + &example.outputs; + <!-- Warning: Crazy CDATA markup. Please DO NOT BREAK it. --> + <screen> +<![CDATA[ +<?xml version="1.0" encoding="utf-8"?> +<root><![CDATA[root value]]]]><![CDATA[></root> +]]> + </screen> </example> </para> </refsect1>

« previous php.doc.es (#5039) next »