cvs: phpdoc-it /reference/domxml configure.xml constants.xml reference.xml /reference/domxml/functions DomDocument-create-attribute.xml
DomDocument-create-cdata-section.xml DomDocument-create-comment.xml DomDocument-create-element-ns.xml DomDocument-create-element.xml
DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml
DomDocument-document-element.xml DomDocumentType-public-id.xml DomDocumentType-system-id.xml DomElement-get-elements-by-tagname.xml
DomElement-set-attribute.xml DomNode-append-child.xml DomNode-append-sibling.xml DomNode-first-child.xml DomNode-get-content.xml
DomNode-insert-before.xml DomNode-next-sibling.xml DomNode-remove-child.xml DomNode-replace-child.xml DomNode-replace-node.xml
DomXsltStylesheet-result-dump-file.xml DomXsltStylesheet-result-dump-mem.xml domxml-open-file.xml domxml-open-mem.xml domxml-xslt-stylesheet-file.xml
domxml-xslt-stylesheet.xml

From: Date: Sun, 11 Jan 2004 20:15:44 +0000
Subject: cvs: phpdoc-it /reference/domxml configure.xml constants.xml reference.xml /reference/domxml/functions DomDocument-create-attribute.xml
DomDocument-create-cdata-section.xml DomDocument-create-comment.xml DomDocument-create-element-ns.xml DomDocument-create-element.xml
DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml
DomDocument-document-element.xml DomDocumentType-public-id.xml DomDocumentType-system-id.xml DomElement-get-elements-by-tagname.xml
DomElement-set-attribute.xml DomNode-append-child.xml DomNode-append-sibling.xml DomNode-first-child.xml DomNode-get-content.xml
DomNode-insert-before.xml DomNode-next-sibling.xml DomNode-remove-child.xml DomNode-replace-child.xml DomNode-replace-node.xml
DomXsltStylesheet-result-dump-file.xml DomXsltStylesheet-result-dump-mem.xml domxml-open-file.xml domxml-open-mem.xml domxml-xslt-stylesheet-file.xml
domxml-xslt-stylesheet.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-499@lists.php.net to get a copy of this message
darvina Sun Jan 11 15:15:44 2004 EDT Modified files: /phpdoc-it/reference/domxml configure.xml constants.xml reference.xml /phpdoc-it/reference/domxml/functions DomDocument-create-attribute.xml DomDocument-create-cdata-section.xml DomDocument-create-comment.xml DomDocument-create-element-ns.xml DomDocument-create-element.xml DomDocument-create-entity-reference.xml DomDocument-create-processing-instruction.xml DomDocument-create-text-node.xml DomDocument-document-element.xml DomDocumentType-public-id.xml DomDocumentType-system-id.xml DomElement-get-elements-by-tagname.xml DomElement-set-attribute.xml DomNode-append-child.xml DomNode-append-sibling.xml DomNode-first-child.xml DomNode-get-content.xml DomNode-insert-before.xml DomNode-next-sibling.xml DomNode-remove-child.xml DomNode-replace-child.xml DomNode-replace-node.xml DomXsltStylesheet-result-dump-file.xml DomXsltStylesheet-result-dump-mem.xml domxml-open-file.xml domxml-open-mem.xml domxml-xslt-stylesheet-file.xml domxml-xslt-stylesheet.xml Log: Sync to En tree

Index: phpdoc-it/reference/domxml/configure.xml diff -u phpdoc-it/reference/domxml/configure.xml:1.3 phpdoc-it/reference/domxml/configure.xml:1.4 --- phpdoc-it/reference/domxml/configure.xml:1.3 Fri Jul 11 15:54:09 2003 +++ phpdoc-it/reference/domxml/configure.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> <section id="domxml.installation"> &reftitle.install; <para> @@ -15,10 +15,10 @@ <simpara> Per potere abilitare questa estensione sui sistemi Windows, occorre copiare file addizionali dalla directory DLL della dustribuzione PHP/Win32 - alla directory SYSTEM32 della macchina Windows (ad esempio: C\WINNT\SYSTEM32 - oppure c:\WINDOWS\SYSTEM32). Per le versioni di PHP &lt;= 4.2.0 copiare il file - <emphasis>libxml2.dll</emphasis>, per le versioni &gt;= 4.3.0 copiare il file - <emphasis>iconv.dll</emphasis> + nella directory SYSTEM32 della macchina Windows (ad esempio: <filename class="directory">C\WINNT\SYSTEM32</filename> + oppure <filename class="directory">c:\WINDOWS\SYSTEM32</filename>). Per le versioni di PHP &lt;= 4.2.0 copiare il file + <filename>libxml2.dll</filename>, per le versioni &gt;= 4.3.0 copiare il file + <filename>>iconv.dll</filename>. </simpara> </note> </section> Index: phpdoc-it/reference/domxml/constants.xml diff -u phpdoc-it/reference/domxml/constants.xml:1.2 phpdoc-it/reference/domxml/constants.xml:1.3 --- phpdoc-it/reference/domxml/constants.xml:1.2 Mon Nov 17 18:10:39 2003 +++ phpdoc-it/reference/domxml/constants.xml Sun Jan 11 15:15:43 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <section id="domxml.constants"> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> &reftitle.constants; &extension.constants; <table> Index: phpdoc-it/reference/domxml/reference.xml diff -u phpdoc-it/reference/domxml/reference.xml:1.5 phpdoc-it/reference/domxml/reference.xml:1.6 --- phpdoc-it/reference/domxml/reference.xml:1.5 Fri Jun 6 16:13:19 2003 +++ phpdoc-it/reference/domxml/reference.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.11 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.13 Maintainer: darvina Status: ready --> <reference id="ref.domxml"> <title>Funzioni DOM XML</title> <titleabbrev>DOM XML</titleabbrev> @@ -260,7 +260,7 @@ <entry></entry> </row> <row> - <entry>document_elemnent</entry> + <entry>document_element</entry> <entry><function>DomDocument_document_element</function></entry> <entry></entry> </row> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-attribute.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-attribute.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-attribute.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-attribute.xml:1.2 Sat Feb 8 07:38:00 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-attribute.xml Sun Jan 11 15:15:43 2004 @@ -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.DomDocument-create-attribute"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-cdata-section.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-cdata-section.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-cdata-section.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-cdata-section.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-cdata-section.xml Sun Jan 11 15:15:43 2004 @@ -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.DomDocument-create-cdata-section"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-comment.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-comment.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-comment.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-comment.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-comment.xml Sun Jan 11 15:15:43 2004 @@ -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.DomDocument-create-comment"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-element-ns.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-element-ns.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-element-ns.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-element-ns.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-element-ns.xml Sun Jan 11 15:15:43 2004 @@ -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.38 --> <refentry id="function.DomDocument-create-element_ns"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-element.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-element.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-element.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-element.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-element.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id="function.DomDocument-create-element"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-entity-reference.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-entity-reference.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-entity-reference.xml Sun Jan 11 15:15:43 2004 @@ -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.DomDocument-create-entity-reference"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-processing-instruction.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-processing-instruction.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-processing-instruction.xml Sun Jan 11 15:15:43 2004 @@ -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.DomDocument-create-processing-instruction"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-create-text-node.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-create-text-node.xml:1.2 phpdoc-it/reference/domxml/functions/DomDocument-create-text-node.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomDocument-create-text-node.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomDocument-create-text-node.xml Sun Jan 11 15:15:43 2004 @@ -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.DomDocument-create-text-node"> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomDocument-document-element.xml diff -u phpdoc-it/reference/domxml/functions/DomDocument-document-element.xml:1.1 phpdoc-it/reference/domxml/functions/DomDocument-document-element.xml:1.2 --- phpdoc-it/reference/domxml/functions/DomDocument-document-element.xml:1.1 Mon Sep 9 15:34:36 2002 +++ phpdoc-it/reference/domxml/functions/DomDocument-document-element.xml Sun Jan 11 15:15:43 2004 @@ -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.6 --> <refentry id="function.DomDocument-document-element"> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Errore nel parsing del documento\n"; exit; } Index: phpdoc-it/reference/domxml/functions/DomDocumentType-public-id.xml diff -u phpdoc-it/reference/domxml/functions/DomDocumentType-public-id.xml:1.1 phpdoc-it/reference/domxml/functions/DomDocumentType-public-id.xml:1.2 --- phpdoc-it/reference/domxml/functions/DomDocumentType-public-id.xml:1.1 Mon Sep 9 15:34:36 2002 +++ phpdoc-it/reference/domxml/functions/DomDocumentType-public-id.xml Sun Jan 11 15:15:43 2004 @@ -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.38 --> <refentry id='function.DomDocumentType-public-id'> <refnamediv> @@ -26,7 +26,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc-it/reference/domxml/functions/DomDocumentType-system-id.xml diff -u phpdoc-it/reference/domxml/functions/DomDocumentType-system-id.xml:1.1 phpdoc-it/reference/domxml/functions/DomDocumentType-system-id.xml:1.2 --- phpdoc-it/reference/domxml/functions/DomDocumentType-system-id.xml:1.1 Mon Sep 9 15:34:36 2002 +++ phpdoc-it/reference/domxml/functions/DomDocumentType-system-id.xml Sun Jan 11 15:15:43 2004 @@ -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.38 --> <refentry id='function.DomDocumentType-system-id'> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } 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.3 phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.4 --- phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml:1.3 Fri Jun 6 16:13:24 2003 +++ phpdoc-it/reference/domxml/functions/DomElement-get-elements-by-tagname.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 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> @@ -24,7 +24,7 @@ <programlisting role="php"> <![CDATA[ <?php -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -33,10 +33,9 @@ $node_array = $root->get_elements_by_tagname("element"); -for ($i = 0; $i<count($node_array); $i++) -{ +for ($i = 0; $i<count($node_array); $i++) { $node = $node_array[$i]; - print ("The element[$i] is: ".$node->get_content()); + echo ("The element[$i] is: ".$node->get_content()); } ?> Index: phpdoc-it/reference/domxml/functions/DomElement-set-attribute.xml diff -u phpdoc-it/reference/domxml/functions/DomElement-set-attribute.xml:1.2 phpdoc-it/reference/domxml/functions/DomElement-set-attribute.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomElement-set-attribute.xml:1.2 Mon Feb 10 16:07:17 2003 +++ phpdoc-it/reference/domxml/functions/DomElement-set-attribute.xml Sun Jan 11 15:15:43 2004 @@ -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.27 --> <refentry id='function.DomElement-set-attribute'> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomNode-append-child.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-append-child.xml:1.3 phpdoc-it/reference/domxml/functions/DomNode-append-child.xml:1.4 --- phpdoc-it/reference/domxml/functions/DomNode-append-child.xml:1.3 Sat Mar 8 06:44:52 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-append-child.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.8 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.40 --> <refentry id='function.DomNode-append-child'> <refnamediv> @@ -26,7 +26,7 @@ il nuovo nodo è una nuova copia che può essere modificata senza variare il nodo passato alla funzione. Se il nodo ha dei nodi figli, anche questi saranno duplicati, ciò rende facile duplicare grandi parti - di un documento xml. Il valore restituito è il nodo figlio + di un documento XML. Il valore restituito è il nodo figlio accodato. Se si prevede di fare ulteriori modifiche al nodo aggiunto, occorre usare il nodo restituito. </para> @@ -40,7 +40,7 @@ dal contesto esistente, se ne esiste uno nel documento. Quindi viene mosso e non più copiato. Questo comportamento si attiene alle specifiche W3C. Se si desidera duplicare una grande parte di un documento - xml, occorre utilizzare DomNode->clone_node() prima di accodare il nodo. + XML, occorre utilizzare DomNode->clone_node() prima di accodare il nodo. </para> <para> Nel seguente esempio si accoderà un nuovo nodo ad un documento @@ -83,7 +83,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -97,10 +97,10 @@ $children = $newnode->children(); $attr = $children[1]->set_attribute("align", "left"); -echo "<PRE>"; +echo "<pre>"; $xmlfile = $dom->dump_mem(); echo htmlentities($xmlfile); -echo "</PRE>"; +echo "</pre>"; ?> ]]> </programlisting> Index: phpdoc-it/reference/domxml/functions/DomNode-append-sibling.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-append-sibling.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-append-sibling.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-append-sibling.xml:1.2 Mon Feb 24 15:24:41 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-append-sibling.xml Sun Jan 11 15:15:43 2004 @@ -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 --> <refentry id='function.DomNode-append-sibling'> <refnamediv> <refname>DomNode->append_sibling</refname> @@ -25,7 +25,7 @@ il nuovo nodo figlio è una nuova copia dell'originale e pertanto, può essere modificato senza modificare il nodo di partenza passato alla funzione. Se il nodo fornito, a sua volta, ha dei nodi figli, pure questi saranno duplicati, in questo modo è abbastanza semplice - duplicare grandi parti di un documento xml. La funzione restituisce il nodo aggiunto. + duplicare grandi parti di un documento XML. La funzione restituisce il nodo aggiunto. Se in seguito occorre modificare il nodo fratello che si è aggiunto, occorre utilizzare il nodo restituito. </para> Index: phpdoc-it/reference/domxml/functions/DomNode-first-child.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-first-child.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-first-child.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-first-child.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-first-child.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomNode-first-child'> <refnamediv> @@ -11,7 +11,7 @@ <refsect1> <title>Descrizione</title> <methodsynopsis> - <type>bool</type><methodname>DomNode->first_child</methodname> + <type>object</type><methodname>DomNode->first_child</methodname> <void/> </methodsynopsis> <para> Index: phpdoc-it/reference/domxml/functions/DomNode-get-content.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-get-content.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-get-content.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-get-content.xml:1.2 Fri Jun 6 16:13:29 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-get-content.xml Sun Jan 11 15:15:43 2004 @@ -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.39 --> <refentry id='function.DomNode-get-content'> <refnamediv> @@ -23,7 +23,7 @@ <programlisting role="php"> <![CDATA[ <?php -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -32,10 +32,9 @@ $node_array = $root->get_elements_by_tagname("element"); -for ($i = 0; $i<count($node_array); $i++) -{ +for ($i = 0; $i<count($node_array); $i++) { $node = $node_array[$i]; - print ("The element[$i] is: ".$node->get_content()); + echo ("The element[$i] is: ".$node->get_content()); } ?> Index: phpdoc-it/reference/domxml/functions/DomNode-insert-before.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-insert-before.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-insert-before.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-insert-before.xml:1.2 Sat Mar 8 06:45:40 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-insert-before.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomNode-insert-before'> <refnamediv> @@ -38,9 +38,10 @@ <title>Aggiunta di un nodo figlio</title> <programlisting role="php"> <![CDATA[ +<?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -57,6 +58,7 @@ $xmlfile = $dom->dump_mem(); echo htmlentities($xmlfile); echo "</PRE>"; +?> ]]> </programlisting> </example> Index: phpdoc-it/reference/domxml/functions/DomNode-next-sibling.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-next-sibling.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-next-sibling.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-next-sibling.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-next-sibling.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.38 --> <refentry id='function.DomNode-next-sibling'> <refnamediv> @@ -28,7 +28,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } @@ -37,7 +37,7 @@ $element = $elements[0]; $child = $element->first_child(); -while($child) { +while ($child) { print_r($child); $child = $child->next_sibling(); } Index: phpdoc-it/reference/domxml/functions/DomNode-remove-child.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-remove-child.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-remove-child.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-remove-child.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-remove-child.xml Sun Jan 11 15:15:43 2004 @@ -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.DomNode-remove-child'> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc-it/reference/domxml/functions/DomNode-replace-child.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-replace-child.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-replace-child.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-replace-child.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-replace-child.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> <refentry id='function.DomNode-replace-child'> <refnamediv> <refname>DomNode->replace_child</refname> Index: phpdoc-it/reference/domxml/functions/DomNode-replace-node.xml diff -u phpdoc-it/reference/domxml/functions/DomNode-replace-node.xml:1.2 phpdoc-it/reference/domxml/functions/DomNode-replace-node.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomNode-replace-node.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/DomNode-replace-node.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.8 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.9 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.39 --> <refentry id='function.DomNode-replace-node'> <refnamediv> Index: phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml diff -u phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml:1.1 phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml:1.2 --- phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml:1.1 Sat Mar 8 06:43:40 2003 +++ phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-file.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.1 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> <refentry id="function.DomXsltStylesheet-result-dump-file"> <refnamediv> <refname>DomXsltStylesheet->result_dump_file</refname> @@ -37,7 +37,7 @@ $xmldoc = domxml_open_file("data.xml"); $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc->process($xmldoc); -print $xsldoc->result_dump_file($result,"filename"); +echo $xsldoc->result_dump_file($result, "filename"); ?> ]]> </programlisting> Index: phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml diff -u phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml:1.2 phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml:1.3 --- phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml:1.2 Sat Mar 15 07:19:22 2003 +++ phpdoc-it/reference/domxml/functions/DomXsltStylesheet-result-dump-mem.xml Sun Jan 11 15:15:43 2004 @@ -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 --> <refentry id="function.DomXsltStylesheet-result-dump-mem"> <refnamediv> <refname>DomXsltStylesheet->result_dump_mem</refname> @@ -36,7 +36,7 @@ $xmldoc = domxml_open_file("data.xml"); $xsldoc = domxml_xslt_stylesheet_file($filename); $result = $xsldoc->process($xmldoc); -print $xsldoc->result_dump_mem($result); +echo $xsldoc->result_dump_mem($result); ?> ]]> </programlisting> Index: phpdoc-it/reference/domxml/functions/domxml-open-file.xml diff -u phpdoc-it/reference/domxml/functions/domxml-open-file.xml:1.1 phpdoc-it/reference/domxml/functions/domxml-open-file.xml:1.2 --- phpdoc-it/reference/domxml/functions/domxml-open-file.xml:1.1 Mon Sep 9 15:34:37 2002 +++ phpdoc-it/reference/domxml/functions/domxml-open-file.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.1 --> <refentry id="function.domxml-open-file"> <refnamediv> @@ -25,7 +25,7 @@ <![CDATA[ <?php -if(!$dom = domxml_open_file("example.xml")) { +if (!$dom = domxml_open_file("example.xml")) { echo "Error while parsing the document\n"; exit; } Index: phpdoc-it/reference/domxml/functions/domxml-open-mem.xml diff -u phpdoc-it/reference/domxml/functions/domxml-open-mem.xml:1.1 phpdoc-it/reference/domxml/functions/domxml-open-mem.xml:1.2 --- phpdoc-it/reference/domxml/functions/domxml-open-mem.xml:1.1 Mon Sep 9 15:34:37 2002 +++ phpdoc-it/reference/domxml/functions/domxml-open-mem.xml Sun Jan 11 15:15:43 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.2 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/domxml.xml, last change in rev 1.1 --> <refentry id="function.domxml-open-mem"> <refnamediv> @@ -27,7 +27,7 @@ <?php include("example.inc"); -if(!$dom = domxml_open_mem($xmlstr)) { +if (!$dom = domxml_open_mem($xmlstr)) { echo "Error while parsing the document\n"; exit; } Index: phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet-file.xml diff -u phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet-file.xml:1.2 phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet-file.xml:1.3 --- phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet-file.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet-file.xml Sun Jan 11 15:15:43 2004 @@ -1,10 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.3 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: darvina Status: ready --> <refentry id="function.domxml-xslt-stylesheet-file"> <refnamediv> <refname>domxml_xslt_stylesheet_file</refname> <refpurpose> - Crea un oggetto DomXsltStylesheet da un file con un documento xsl + Crea un oggetto DomXsltStylesheet da un file con un documento XSL </refpurpose> </refnamediv> <refsect1> Index: phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet.xml diff -u phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet.xml:1.2 phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet.xml:1.3 --- phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet.xml:1.2 Mon Feb 24 15:24:43 2003 +++ phpdoc-it/reference/domxml/functions/domxml-xslt-stylesheet.xml Sun Jan 11 15:15:43 2004 @@ -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 --> <refentry id="function.domxml-xslt-stylesheet"> <refnamediv> <refname>domxml_xslt_stylesheet</refname>
« previous php.doc.it (#499) next »