XML Parser
- Введение
- Installing/Configuring
- Предопределенные константы
- Event Handlers
- Case Folding
- Error Codes
- Character Encoding
- Примеры
- XML Parser Функции
- utf8_decode — Converts a string with ISO-8859-1 characters encoded with UTF-8 to single-byte ISO-8859-1
- utf8_encode — Encodes an ISO-8859-1 string to UTF-8
- xml_error_string — Get XML parser error string
- xml_get_current_byte_index — Get current byte index for an XML parser
- xml_get_current_column_number — Get current column number for an XML parser
- xml_get_current_line_number — Get current line number for an XML parser
- xml_get_error_code — Get XML parser error code
- xml_parse_into_struct — Parse XML data into an array structure
- xml_parse — Start parsing an XML document
- xml_parser_create_ns — Create an XML parser with namespace support
- xml_parser_create — Create an XML parser
- xml_parser_free — Free an XML parser
- xml_parser_get_option — Get options from an XML parser
- xml_parser_set_option — Set options in an XML parser
- xml_set_character_data_handler — Set up character data handler
- xml_set_default_handler — Set up default handler
- xml_set_element_handler — Set up start and end element handlers
- xml_set_end_namespace_decl_handler — Set up end namespace declaration handler
- xml_set_external_entity_ref_handler — Set up external entity reference handler
- xml_set_notation_decl_handler — Set up notation declaration handler
- xml_set_object — Use XML Parser within an object
- xml_set_processing_instruction_handler — Set up processing instruction (PI) handler
- xml_set_start_namespace_decl_handler — Set up start namespace declaration handler
- xml_set_unparsed_entity_decl_handler — Set up unparsed entity declaration handler
Коментарии
While this SAX event based parser is better for memory management than the tree based parsers of SimpleXML and DOM, the pull-based parser XMLReader is much easier to use than the xml_parser_* functions, and still doesn't require loading the file into memory.