September 2001
Intermediate to advanced
768 pages
32h 45m
English
int xml_parser_create([string encoding]) Creates an XML parser and returns its resource.
Returns:
Resource to an XML parser on success; FALSE on error
Description:
This function creates a new XML parser and initializes it for use. A reference to a valid parser needs to be created before parsing is started. Possible encodings are ISO-8859-1 (the default), US-ASCII, and UTF-8. If the parser encounters characters outside its encoding limits, it returns an error. More information on limits of encodings and how encodings are handled can be found in the source file xmlparse.h of this extension.
Version:
PHP 3 >= 3.0.6, PHP 4 >= 4.0b1
Example:
$xmlparser = xml_parser_create(); xml_parser_free($xmlparser); ... |
Read now
Unlock full access