cvs: phpdoc-it /reference/xml configure.xml reference.xml /reference/xml/functions utf8-decode.xml xml-parse-into-struct.xml xml-parser-create-ns.xml
xml-parser-create.xml xml-set-object.xml

From: Date: Fri, 09 Jan 2004 20:33:29 +0000
Subject: cvs: phpdoc-it /reference/xml configure.xml reference.xml /reference/xml/functions utf8-decode.xml xml-parse-into-struct.xml xml-parser-create-ns.xml
xml-parser-create.xml xml-set-object.xml
Groups: php.doc.it 
Request: Send a blank email to doc-it+get-496@lists.php.net to get a copy of this message
darvina Fri Jan 9 15:33:29 2004 EDT Modified files: /phpdoc-it/reference/xml configure.xml reference.xml /phpdoc-it/reference/xml/functions utf8-decode.xml xml-parse-into-struct.xml xml-parser-create-ns.xml xml-parser-create.xml xml-set-object.xml Log: Sync to En tree

Index: phpdoc-it/reference/xml/configure.xml diff -u phpdoc-it/reference/xml/configure.xml:1.1 phpdoc-it/reference/xml/configure.xml:1.2 --- phpdoc-it/reference/xml/configure.xml:1.1 Mon Feb 24 15:49:39 2003 +++ phpdoc-it/reference/xml/configure.xml Fri Jan 9 15:33:28 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 --> <section id="xml.installation"> &reftitle.install; <para> Index: phpdoc-it/reference/xml/reference.xml diff -u phpdoc-it/reference/xml/reference.xml:1.6 phpdoc-it/reference/xml/reference.xml:1.7 --- phpdoc-it/reference/xml/reference.xml:1.6 Fri Oct 3 15:27:50 2003 +++ phpdoc-it/reference/xml/reference.xml Fri Jan 9 15:33:28 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.10 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.13 Maintainer: darvina Status: ready --> <reference id="ref.xml"> <title>Funzioni relative al parser XML</title> <titleabbrev>XML</titleabbrev> @@ -285,9 +285,9 @@ function startElement($parser, $name, $attrs) { global $depth; for ($i = 0; $i < $depth[$parser]; $i++) { - print " "; + echo " "; } - print "$name\n"; + echo "$name\n"; $depth[$parser]++; } @@ -341,20 +341,20 @@ function startElement($parser, $name, $attrs) { global $map_array; - if ($htmltag = $map_array[$name]) { - print "<$htmltag>"; + if ($htmltag == $map_array[$name]) { + echo "<$htmltag>"; } } function endElement($parser, $name) { global $map_array; - if ($htmltag = $map_array[$name]) { - print "</$htmltag>"; + if ($htmltag == $map_array[$name]) { + echo "</$htmltag>"; } } function characterData($parser, $data) { - print $data; + echo $data; } $xml_parser = xml_parser_create(); @@ -413,22 +413,22 @@ } function startElement($parser, $name, $attribs) { - print "&lt;<font color=\"#0000cc\">$name</font>"; + echo "&lt;<font color=\"#0000cc\">$name</font>"; if (sizeof($attribs)) { while (list($k, $v) = each($attribs)) { - print " <font color=\"#009900\">$k</font>=\"<font + echo " <font color=\"#009900\">$k</font>=\"<font color=\"#990000\">$v</font>\""; } } - print "&gt;"; + echo "&gt;"; } function endElement($parser, $name) { - print "&lt;/<font color=\"#0000cc\">$name</font>&gt;"; + echo "&lt;/<font color=\"#0000cc\">$name</font>&gt;"; } function characterData($parser, $data) { - print "<b>$data</b>"; + echo "<b>$data</b>"; } function PIHandler($parser, $target, $data) { @@ -506,7 +506,7 @@ die("Non si riesce ad aprire il documento XML"); } -print "<pre>"; +echo "<pre>"; while ($data = fread($fp, 4096)) { if (!xml_parse($xml_parser, $data, feof($fp))) { die(sprintf("Errore XML: %s alla linea %d\n", @@ -514,8 +514,8 @@ xml_get_current_line_number($xml_parser))); } } -print "</pre>"; -print "parsing completato\n"; +echo "</pre>"; +echo "parsing completato\n"; xml_parser_free($xml_parser); ?> @@ -551,7 +551,7 @@ <title>Circa questo documento</title> <para> <!-- questo è un commento --> - <?php print 'Ciao! Questa è la versione di PHP '.phpversion(); ?> + <?php echo 'Ciao! Questa è la versione di PHP '.phpversion(); ?> </para> </section> </chapter> @@ -572,7 +572,7 @@ <foo> <element attrib="value"/> &testEnt; - <?php print "Questa è una ulteriore riga di codice PHP eseguito."; ?> + <?php echo "Questa è una ulteriore riga di codice PHP eseguito."; ?> </foo> ]]> </programlisting> Index: phpdoc-it/reference/xml/functions/utf8-decode.xml diff -u phpdoc-it/reference/xml/functions/utf8-decode.xml:1.2 phpdoc-it/reference/xml/functions/utf8-decode.xml:1.3 --- phpdoc-it/reference/xml/functions/utf8-decode.xml:1.2 Sat Feb 22 08:02:23 2003 +++ phpdoc-it/reference/xml/functions/utf8-decode.xml Fri Jan 9 15:33:29 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/xml.xml, last change in rev 1.2 --> <refentry id="function.utf8-decode"> <refnamediv> Index: phpdoc-it/reference/xml/functions/xml-parse-into-struct.xml diff -u phpdoc-it/reference/xml/functions/xml-parse-into-struct.xml:1.3 phpdoc-it/reference/xml/functions/xml-parse-into-struct.xml:1.4 --- phpdoc-it/reference/xml/functions/xml-parse-into-struct.xml:1.3 Fri Oct 3 15:27:51 2003 +++ phpdoc-it/reference/xml/functions/xml-parse-into-struct.xml Fri Jan 9 15:33:29 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.5 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/xml.xml, last change in rev 1.11 --> <refentry id="function.xml-parse-into-struct"> <refnamediv> @@ -34,7 +34,7 @@ <?php $simple = "<para><note>simple note</note></para>"; $p = xml_parser_create(); -xml_parse_into_struct($p,$simple,$vals,$index); +xml_parse_into_struct($p, $simple, $vals, $index); xml_parser_free($p); echo "Array indice\n"; print_r($index); @@ -152,11 +152,11 @@ function readDatabase($filename) { // legge il database degli aminoacidi - $data = implode("",file($filename)); + $data = implode("", file($filename)); $parser = xml_parser_create(); - xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0); - xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1); - xml_parse_into_struct($parser,$data,$values,$tags); + xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0); + xml_parser_set_option($parser, XML_OPTION_SKIP_WHITE, 1); + xml_parse_into_struct($parser, $data, $values, $tags); xml_parser_free($parser); // loop attraverso la struttura Index: phpdoc-it/reference/xml/functions/xml-parser-create-ns.xml diff -u phpdoc-it/reference/xml/functions/xml-parser-create-ns.xml:1.4 phpdoc-it/reference/xml/functions/xml-parser-create-ns.xml:1.5 --- phpdoc-it/reference/xml/functions/xml-parser-create-ns.xml:1.4 Fri Oct 3 15:27:51 2003 +++ phpdoc-it/reference/xml/functions/xml-parser-create-ns.xml Fri Jan 9 15:33:29 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: darvina Status: ready --> <refentry id='function.xml-parser-create-ns'> <refnamediv> <refname>xml_parser_create_ns</refname> Index: phpdoc-it/reference/xml/functions/xml-parser-create.xml diff -u phpdoc-it/reference/xml/functions/xml-parser-create.xml:1.3 phpdoc-it/reference/xml/functions/xml-parser-create.xml:1.4 --- phpdoc-it/reference/xml/functions/xml-parser-create.xml:1.3 Fri Jun 6 16:16:21 2003 +++ phpdoc-it/reference/xml/functions/xml-parser-create.xml Fri Jan 9 15:33:29 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.xml-parser-create"> <refnamediv> <refname>xml_parser_create</refname> Index: phpdoc-it/reference/xml/functions/xml-set-object.xml diff -u phpdoc-it/reference/xml/functions/xml-set-object.xml:1.3 phpdoc-it/reference/xml/functions/xml-set-object.xml:1.4 --- phpdoc-it/reference/xml/functions/xml-set-object.xml:1.3 Mon Feb 24 15:51:07 2003 +++ phpdoc-it/reference/xml/functions/xml-set-object.xml Fri Jan 9 15:33:29 2004 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- EN-Revision: 1.6 Maintainer: darvina Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: darvina Status: ready --> <!-- splitted from ./en/functions/xml.xml, last change in rev 1.2 --> <refentry id="function.xml-set-object"> <refnamediv> @@ -25,8 +25,7 @@ class xml { var $parser; - function xml() - { + function xml() { $this->parser = xml_parser_create(); xml_set_object($this->parser, &$this); @@ -34,23 +33,19 @@ xml_set_character_data_handler($this->parser, "cdata"); } - function parse($data) - { + function parse($data) { xml_parse($this->parser, $data); } - function tag_open($parser, $tag, $attributes) - { + function tag_open($parser, $tag, $attributes) { var_dump($parser, $tag, $attributes); } - function cdata($parser, $cdata) - { + function cdata($parser, $cdata) { var_dump($parser, $cdata); } - function tag_close($parser, $tag) - { + function tag_close($parser, $tag) { var_dump($parser, $tag); }
« previous php.doc.it (#496) next »