English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Basic PHP Tutorial

Advanced PHP Tutorial

PHP & MySQL

PHP Reference Manual

PHP XML Parser Functions

XML parsing is an extension of PHP that allows us to easily operate and retrieve XML data.

Installation

By default, this extension is enabled. The default command line disabled at compile time is  --disable-xml

Runtime configuration

There is no configuration instruction defined in php.ini for this extension name.

Function list

Version-Indicates the earliest version of PHP that supports this function.

Serial numberFunction
Description
Version
1utf8_decode()Convert UTF-8 Decode the UTF string to ISO-8859-14
2utf8_encode()Convert ISO-8859-1 The string is encoded as UTF-84
3xml_error_string()It is used to get the error string of the XML parser5
4xml_get_current_byte_index()It is used to get the current byte index of the XML parser4
5xml_get_current_column_number()It is used to get the current column number of the XML parser4
6xml_get_current_line_number()It is used to get the current line number of the XML parser4
7xml_get_error_code()It is used to get the error code of the XML parser4
8xml_parse_into_struct()It is used to parse any formatted XML into an array structure4
9xml_parser_create_ns()It is used to create an XML parser with namespace support4
10xml_parser_create()It is used to create an XML parser4
11xml_parser_free()It is used to free the XML parser4
12xml_parser_get_option()It retrieves options from the XML parser.4
13xml_parser_set_option()It is used to set options in an XML parser4
14xml_set_character_data_handler()It is used to establish a character data handler4
15xml_set_default_handler()It is used to establish a default handler4
16xml_set_element_handler()It is used to establish a start and end element handler4
17xml_set_end_namespace_decl_handler()It is used to establish an end namespace declaration handler4
18xml_set_external_entity_ref_handler()It is used to establish an external entity handler4
19xml_set_notation_decl_handler()It is used to establish a notation declaration handler4
20xml_set_object()It is used to use an XML parser in an object4
21xml_set_processing_instruction_handler()It is used to establish a processing instruction (PI) handler4
22xml_set_start_namespace_decl_handler()It is used to establish a start namespace declaration handler4
23xml_set_unparsed_entity_decl_handler()It is used to establish an unparsed entity declaration handler4