betz            Mon Mar 29 09:22:43 2004 EDT

  Modified files:              
    /phpdoc/en/reference/xml/functions  xml-error-string.xml 
                                        xml-parse-into-struct.xml 
                                        xml-set-object.xml 
  Log:
  example and title tags added, typos, example fix
  
  
http://cvs.php.net/diff.php/phpdoc/en/reference/xml/functions/xml-error-string.xml?r1=1.3&r2=1.4&ty=u
Index: phpdoc/en/reference/xml/functions/xml-error-string.xml
diff -u phpdoc/en/reference/xml/functions/xml-error-string.xml:1.3 
phpdoc/en/reference/xml/functions/xml-error-string.xml:1.4
--- phpdoc/en/reference/xml/functions/xml-error-string.xml:1.3  Fri Apr 19 07:11:21 
2002
+++ phpdoc/en/reference/xml/functions/xml-error-string.xml      Mon Mar 29 09:22:43 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
 <!-- splitted from ./en/functions/xml.xml, last change in rev 1.2 -->
   <refentry id="function.xml-error-string">
    <refnamediv>
@@ -25,7 +25,7 @@
      </variablelist>
     </para>
     <para>
-     Returns a string with a textual description of the error code
+     Returns a string with a textual description of the error
      <parameter>code</parameter>, or &false; if no description was found.
     </para>
    </refsect1>
http://cvs.php.net/diff.php/phpdoc/en/reference/xml/functions/xml-parse-into-struct.xml?r1=1.9&r2=1.10&ty=u
Index: phpdoc/en/reference/xml/functions/xml-parse-into-struct.xml
diff -u phpdoc/en/reference/xml/functions/xml-parse-into-struct.xml:1.9 
phpdoc/en/reference/xml/functions/xml-parse-into-struct.xml:1.10
--- phpdoc/en/reference/xml/functions/xml-parse-into-struct.xml:1.9     Thu Jan 15 
07:43:44 2004
+++ phpdoc/en/reference/xml/functions/xml-parse-into-struct.xml Mon Mar 29 09:22:43 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.9 $ -->
+<!-- $Revision: 1.10 $ -->
 <!-- splitted from ./en/functions/xml.xml, last change in rev 1.11 -->
   <refentry id="function.xml-parse-into-struct">
    <refnamediv>
@@ -26,9 +26,10 @@
      Below is an example that illustrates the internal structure of
      the arrays being generated by the function. We use a simple
      <literal>note</literal> tag embedded inside a
-     <literal>para</literal> tag, and then we parse this an print out
+     <literal>para</literal> tag, and then we parse this and print out
      the structures generated:
-     <informalexample>
+     <example>
+      <title><function>xml_parse_into_struct</function> example</title>
       <programlisting role="php">
 <![CDATA[
 <?php
@@ -92,7 +93,7 @@
 )
 ]]>
       </screen>
-     </informalexample>
+     </example>
     </para>
     <para>
      Event-driven parsing (based on the expat library) can get
@@ -131,7 +132,7 @@
      objects:
      <example>
       <title>
-       parsemoldb.php - parses moldb.xml into and array of
+       parsemoldb.php - parses moldb.xml into an array of
        molecular objects
       </title>
       <programlisting role="php">
http://cvs.php.net/diff.php/phpdoc/en/reference/xml/functions/xml-set-object.xml?r1=1.8&r2=1.9&ty=u
Index: phpdoc/en/reference/xml/functions/xml-set-object.xml
diff -u phpdoc/en/reference/xml/functions/xml-set-object.xml:1.8 
phpdoc/en/reference/xml/functions/xml-set-object.xml:1.9
--- phpdoc/en/reference/xml/functions/xml-set-object.xml:1.8    Thu Jan 15 07:43:44 
2004
+++ phpdoc/en/reference/xml/functions/xml-set-object.xml        Mon Mar 29 09:22:43 
2004
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.8 $ -->
+<!-- $Revision: 1.9 $ -->
 <!-- splitted from ./en/functions/xml.xml, last change in rev 1.2 -->
   <refentry id="function.xml-set-object">
    <refnamediv>
@@ -19,7 +19,10 @@
      <function>xml_set_element_handler</function> etc and assumed to be
      methods of <parameter>object</parameter>.
     </para>
-    <programlisting role="php">
+    <para>
+     <example>
+      <title><function>xml_set_object</function> example</title>
+      <programlisting role="php">
 <![CDATA[
 <?php
 class xml  {
@@ -29,7 +32,7 @@
     {
         $this->parser = xml_parser_create();
 
-        xml_set_object($this->parser, &$this);
+        xml_set_object($this->parser, $this);
         xml_set_element_handler($this->parser, "tag_open", "tag_close");
         xml_set_character_data_handler($this->parser, "cdata");
     }
@@ -60,7 +63,9 @@
 $xml_parser->parse("<A ID='hallo'>PHP</A>");
 ?>
 ]]>
-    </programlisting>
+      </programlisting>
+     </example>
+    </para>
    </refsect1>
   </refentry>
 

Reply via email to