svn: /phpdoc/es/trunk/reference/xml/functions/ xml-parse-into-struct.xml
| From: | Edwin Alexander Cartagena Hernández | Date: | Mon, 13 Dec 2010 07:35:35 +0000 |
| Subject: | svn: /phpdoc/es/trunk/reference/xml/functions/ xml-parse-into-struct.xml | ||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-3973@lists.php.net to get a copy of this message | ||
edwincartagenah Mon, 13 Dec 2010 07:35:35 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=306331
Log:
..
Changed paths:
U phpdoc/es/trunk/reference/xml/functions/xml-parse-into-struct.xml
Modified: phpdoc/es/trunk/reference/xml/functions/xml-parse-into-struct.xml
===================================================================
--- phpdoc/es/trunk/reference/xml/functions/xml-parse-into-struct.xml 2010-12-13 07:15:46 UTC (rev
306330)
+++ phpdoc/es/trunk/reference/xml/functions/xml-parse-into-struct.xml 2010-12-13 07:35:35 UTC (rev
306331)
@@ -86,7 +86,7 @@
<programlisting role="php">
<![CDATA[
<?php
-$simple = "<para><note>simple note</note></para>";
+$simple = "<para><note>Nota Simple</note></para>";
$p = xml_parser_create();
xml_parse_into_struct($p, $simple, $vals, $index);
xml_parser_free($p);
@@ -185,7 +185,7 @@
adecuados:
<example>
<title>
- parsemoldb.php - interpreta moldb.xml en un array de
+ parsemoldb.php - interpreta moldb.xml dentro de un array de
objetos moleculares
</title>
<programlisting role="php">
@@ -193,10 +193,10 @@
<?php
class AminoAcid {
- var $name; // aa name
- var $symbol; // three letter symbol
- var $code; // one letter code
- var $type; // hydrophobic, charged or neutral
+ var $name; // nombre aa
+ var $symbol; // símbolo de tres letras
+ var $code; // código de una letra
+ var $type; // hidrofóbico, cargado or neutral
function AminoAcid ($aa)
{
@@ -215,12 +215,12 @@
xml_parse_into_struct($parser, $data, $values, $tags);
xml_parser_free($parser);
- // loop through the structures
+ // repetir a través de las extructuras
foreach ($tags as $key=>$val) {
if ($key == "molecule") {
$molranges = $val;
- // each contiguous pair of array entries are the
- // lower and upper range for each molecule definition
+ // cada par contiguo de netradas de array son los
+ // rangos altos y bajos para cada definición de molécula
for ($i=0; $i < count($molranges); $i+=2) {
$offset = $molranges[$i] + 1;
$len = $molranges[$i + 1] - $offset;
@@ -256,10 +256,10 @@
<informalexample>
<screen>
<![CDATA[
-** Database of AminoAcid objects:
+** Base de datos de objetos AminoÁcidos:
Array
(
- [0] => aminoacid Object
+ [0] => Objeto aminoácido
(
[name] => Alanine
[symbol] => ala
@@ -267,7 +267,7 @@
[type] => hydrophobic
)
- [1] => aminoacid Object
+ [1] => Objeto aminoácido
(
[name] => Lysine
[symbol] => lys