example and title tags added, typos, example fix

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@154844 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Friedhelm Betz 2004-03-29 14:22:43 +00:00
parent 52fe5fd3b2
commit 37f37f40b0
3 changed files with 17 additions and 11 deletions

View file

@ -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>

View file

@ -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 @@ Array
)
]]>
</screen>
</informalexample>
</example>
</para>
<para>
Event-driven parsing (based on the expat library) can get
@ -131,7 +132,7 @@ Array
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">

View file

@ -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 @@ class xml {
{
$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 = new xml();
$xml_parser->parse("<A ID='hallo'>PHP</A>");
?>
]]>
</programlisting>
</programlisting>
</example>
</para>
</refsect1>
</refentry>