|
xml_parseStart parsing an XML document Description
int xml_parse(XMLParser
$parser , string $data , bool $is_final = false )xml_parse parses an XML document. The handlers for the configured events are called as many times as necessary. Parameters
Return ValuesReturns 1 on success or 0 on failure. 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.
Changelog
ExamplesExample #1 Chunked parsing of large XML documents This example shows how large XML documents can be read and parsed in chunks, so that it not necessary to keep the whole document in memory. Error handling is omitted for brevity.
|