★ wanayoo — archive 1999 http://www.php.net/manual/function.xml-parse.phpNouvelle recherche | Portail wanayoo

PHP Home Page

Manual Table of Contents
Up to XML
Quick Reference
German version of this pageJapanese version of this pageItalian version of this pageFrench version of this pageHungarian version of this page
XML
* xml_parser_create
* xml_set_object
* xml_set_element_handler
* xml_set_character_data_handler
* xml_set_processing_instruction_handler
* xml_set_default_handler
* xml_set_unparsed_entity_decl_handler
* xml_set_notation_decl_handler
* xml_set_external_entity_ref_handler
* xml_parse
* xml_get_error_code
* xml_error_string
* xml_get_current_line_number
* xml_get_current_column_number
* xml_get_current_byte_index
* xml_parser_free
* xml_parser_set_option
* xml_parser_get_option
* utf8_decode
* utf8_encode
Manual: xml_parse
View the source code for this pageSearch the site



Previous page
 xml_set_external_entity_ref_handler
 Updated
Sat, 12 Aug 2000
xml_get_error_code 
Next page


xml_parse

(PHP3 >= 3.0.6, PHP4 )

xml_parse -- start parsing an XML document

Description

int xml_parse (int parser, string data [, int isFinal])

parser

A reference to the XML parser to use.

data

Chunk of data to parse. A document may be parsed piece-wise by calling xml_parse() several times with new data, as long as the isFinal parameter is set and true when the last data is parsed.

isFinal (optional)

If set and true, data is the last piece of data sent in this parse.

When the XML document is parsed, the handlers for the configured events are called as many times as necessary, after which this function returns true or false.

True is returned if the parse was successful, false if it was not successful, or if parser does not refer to a valid parser. For unsuccessful parses, error information can be retrieved with xml_get_error_code(), xml_error_string(), xml_get_current_line_number(), xml_get_current_column_number() and xml_get_current_byte_index().


 About Notes


Previous page
 xml_set_external_entity_ref_handler
 Updated
Sat, 12 Aug 2000
xml_get_error_code 
Next page





Who's responsible for this?
Top of this page

Site
Hosting:



Located in
United States
Elements of this website are subject to copyright.
Questions about installing or using PHP should be directed to one of the mailing lists.
Only questions about the website should be directed to webmaster@php.net.