cvs: phpdoc-it /reference/domxml/functions DomNode-get-content.xml
| From: | Andrioli Darvin | Date: | Fri, 06 Jun 2003 20:13:29 +0000 |
| Subject: | cvs: phpdoc-it /reference/domxml/functions DomNode-get-content.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-397@lists.php.net to get a copy of this message | ||
darvina Fri Jun 6 16:13:29 2003 EDT
Modified files:
/phpdoc-it/reference/domxml/functions DomNode-get-content.xml
Log:
Update to En 1.3
Index: phpdoc-it/reference/domxml/functions/DomNode-get-content.xml
diff -u phpdoc-it/reference/domxml/functions/DomNode-get-content.xml:1.1
phpdoc-it/reference/domxml/functions/DomNode-get-content.xml:1.2
--- phpdoc-it/reference/domxml/functions/DomNode-get-content.xml:1.1 Mon Sep 9 15:34:36 2002
+++ phpdoc-it/reference/domxml/functions/DomNode-get-content.xml Fri Jun 6 16:13:29 2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 -->
<refentry id='function.DomNode-get-content'>
<refnamediv>
@@ -15,7 +15,33 @@
<void/>
</methodsynopsis>
<para>
- &warn.undocumented.func;
+ Questa funzione restituisce il contenuto del nodo
+ </para>
+ <para>
+ <example>
+ <title>Ottenere il contenuto di un nodo</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+if(!$dom = domxml_open_mem($xmlstr)) {
+ echo "Error while parsing the document\n";
+ exit;
+}
+
+$root = $dom->document_element();
+
+$node_array = $root->get_elements_by_tagname("element");
+
+for ($i = 0; $i<count($node_array); $i++)
+{
+ $node = $node_array[$i];
+ print ("The element[$i] is: ".$node->get_content());
+}
+
+?>
+]]>
+ </programlisting>
+ </example>
</para>
</refsect1>
</refentry>