cvs: phpdoc-it /reference/domxml/functions DomElement-get-elements-by-tagname.xml
| From: | Andrioli Darvin | Date: | Fri, 06 Jun 2003 20:13:24 +0000 |
| Subject: | cvs: phpdoc-it /reference/domxml/functions DomElement-get-elements-by-tagname.xml | ||
| Groups: | php.doc.it | ||
| Request: | Send a blank email to doc-it+get-396@lists.php.net to get a copy of this message | ||
darvina Fri Jun 6 16:13:24 2003 EDT
Modified files:
/phpdoc-it/reference/domxml/functions
DomElement-get-elements-by-tagname.xml
Log:
Update to En up 1.4
Index: phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml
diff -u phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.2
phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.3
--- phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.2 Fri Nov 15
16:15:36 2002
+++ phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml Fri Jun 6 16:13:24
2003
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready -->
+<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready -->
<!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 -->
<refentry id='function.DomElement-get-elements-by-tagname'>
<refnamediv>
@@ -15,8 +15,35 @@
<methodparam><type>string</type><parameter>nome</parameter></methodparam>
</methodsynopsis>
<para>
- &warn.undocumented.func;
+ Questa funzione restituisce un array con tutti gli elementi che hanno come nome
+ del tag <parameter>nome</parameter>. Ogni elemento dell'array è un oggetto
DomElement.
</para>
+ <para>
+ <example>
+ <title>Ottenere il contenuto</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>