From 37f37f40b049bd2307c64109e602f7cd0e18fd1e Mon Sep 17 00:00:00 2001 From: Friedhelm Betz Date: Mon, 29 Mar 2004 14:22:43 +0000 Subject: [PATCH] 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 --- reference/xml/functions/xml-error-string.xml | 4 ++-- reference/xml/functions/xml-parse-into-struct.xml | 11 ++++++----- reference/xml/functions/xml-set-object.xml | 13 +++++++++---- 3 files changed, 17 insertions(+), 11 deletions(-) diff --git a/reference/xml/functions/xml-error-string.xml b/reference/xml/functions/xml-error-string.xml index a75aef5ad3..dae15bf73d 100644 --- a/reference/xml/functions/xml-error-string.xml +++ b/reference/xml/functions/xml-error-string.xml @@ -1,5 +1,5 @@ - + @@ -25,7 +25,7 @@ - Returns a string with a textual description of the error code + Returns a string with a textual description of the error code, or &false; if no description was found. diff --git a/reference/xml/functions/xml-parse-into-struct.xml b/reference/xml/functions/xml-parse-into-struct.xml index 4621949537..eac54acb21 100644 --- a/reference/xml/functions/xml-parse-into-struct.xml +++ b/reference/xml/functions/xml-parse-into-struct.xml @@ -1,5 +1,5 @@ - + @@ -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 note tag embedded inside a - para tag, and then we parse this an print out + para tag, and then we parse this and print out the structures generated: - + + <function>xml_parse_into_struct</function> example - + Event-driven parsing (based on the expat library) can get @@ -131,7 +132,7 @@ Array objects: - parsemoldb.php - parses moldb.xml into and array of + parsemoldb.php - parses moldb.xml into an array of molecular objects diff --git a/reference/xml/functions/xml-set-object.xml b/reference/xml/functions/xml-set-object.xml index 04b20871f0..44ebbe9b59 100644 --- a/reference/xml/functions/xml-set-object.xml +++ b/reference/xml/functions/xml-set-object.xml @@ -1,5 +1,5 @@ - + @@ -19,7 +19,10 @@ xml_set_element_handler etc and assumed to be methods of object. - + + + <function>xml_set_object</function> example + 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("PHP"); ?> ]]> - + + +