XML Parser
Introduction
XML (eXtensible Markup Language) is a data format for structured document interchange on the Web. It is a standard defined by The World Wide Web consortium (W3C). Information about XML and related technologies can be found at » http://www.w3.org/XML/.
This PHP extension implements support for James Clark's expat in PHP. This toolkit lets you parse, but not validate, XML documents. It supports three source character encodings also provided by PHP: US-ASCII, ISO-8859-1 and UTF-8. UTF-16 is not supported.
This extension lets you create XML parsers and then define handlers for different XML events. Each XML parser also has a few parameters you can adjust.
- Installing/Configuring
- Predefined Constants
- Event Handlers
- Case Folding
- Error Codes
- Character Encoding
- Examples
- XML Parser Functions
- 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 — Start parsing an XML document
- xml_parse_into_struct — Parse XML data into an array structure
- xml_parser_create — Create an XML parser
- xml_parser_create_ns — Create an XML parser with namespace support
- 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
- XMLParser — The XMLParser class
↑ and ↓ to navigate • Enter to select • Esc to close • / to open