F.40. XML
Function | Returns | Description |
---|---|---|
xml_parser_create([string encoding]) | resource | Creates an XML parser. |
xml_parser_create_ns([string encoding [, string sep]]) | resource | Creates an XML parser. |
xml_set_object(resource parser, object &obj) | int | Sets up object which should be used for callbacks. |
xml_set_element_handler(resource parser, string shdl, string ehdl) | int | Sets up start and end element handlers. |
xml_set_character_data_handler(resource parser, string hdl) | int | Sets up character data handler. |
xml_set_processing_instruction_handler(resource parser, string hdl) | int | Sets up processing instruction (PI) handler. |
xml_set_default_handler(resource parser, string hdl) | int | Sets up default handler. |
xml_set_unparsed_entity_decl_handler(resource parser, string hdl) | int | Sets up unparsed entity declaration handler. |
xml_set_notation_decl_handler(resource parser, string hdl) | int | Sets up notation declaration handler. |
xml_set_external_entity_ref_handler(resource parser, string hdl) | int | Sets up external entity reference handler. |
xml_set_start_namespace_decl_handler(resource parser, string hdl) | int | Sets up character data handler. |
xml_set_end_namespace_decl_handler(resource parser, string hdl) | int | Sets up character data handler. |
xml_parse(resource parser, string data [, int isFinal]) | int | Starts parsing an XML document. |
xml_parse_into_struct(resource parser, string data, array &struct, array &index) | int | Parses an XML document. |
xml_get_error_code(resource parser) | int | Gets XML parser error code. |
xml_error_string(int ... |
Get Web Standards Programmer's Reference: HTML, CSS, JavaScript®, Perl, Python®, and PHP now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.