English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
XML parsing is an extension of PHP that allows us to easily operate and retrieve XML data.
By default, this extension is enabled. The default command line disabled at compile time is --disable-xml
There is no configuration instruction defined in php.ini for this extension name.
Version-Indicates the earliest version of PHP that supports this function.
Serial number | Function | Description | Version |
---|---|---|---|
1 | utf8_decode() | Convert UTF-8 Decode the UTF string to ISO-8859-1 | 4 |
2 | utf8_encode() | Convert ISO-8859-1 The string is encoded as UTF-8 | 4 |
3 | xml_error_string() | It is used to get the error string of the XML parser | 5 |
4 | xml_get_current_byte_index() | It is used to get the current byte index of the XML parser | 4 |
5 | xml_get_current_column_number() | It is used to get the current column number of the XML parser | 4 |
6 | xml_get_current_line_number() | It is used to get the current line number of the XML parser | 4 |
7 | xml_get_error_code() | It is used to get the error code of the XML parser | 4 |
8 | xml_parse_into_struct() | It is used to parse any formatted XML into an array structure | 4 |
9 | xml_parser_create_ns() | It is used to create an XML parser with namespace support | 4 |
10 | xml_parser_create() | It is used to create an XML parser | 4 |
11 | xml_parser_free() | It is used to free the XML parser | 4 |
12 | xml_parser_get_option() | It retrieves options from the XML parser. | 4 |
13 | xml_parser_set_option() | It is used to set options in an XML parser | 4 |
14 | xml_set_character_data_handler() | It is used to establish a character data handler | 4 |
15 | xml_set_default_handler() | It is used to establish a default handler | 4 |
16 | xml_set_element_handler() | It is used to establish a start and end element handler | 4 |
17 | xml_set_end_namespace_decl_handler() | It is used to establish an end namespace declaration handler | 4 |
18 | xml_set_external_entity_ref_handler() | It is used to establish an external entity handler | 4 |
19 | xml_set_notation_decl_handler() | It is used to establish a notation declaration handler | 4 |
20 | xml_set_object() | It is used to use an XML parser in an object | 4 |
21 | xml_set_processing_instruction_handler() | It is used to establish a processing instruction (PI) handler | 4 |
22 | xml_set_start_namespace_decl_handler() | It is used to establish a start namespace declaration handler | 4 |
23 | xml_set_unparsed_entity_decl_handler() | It is used to establish an unparsed entity declaration handler | 4 |