XML Parser functions
The CICS® TS Feature Pack for Dynamic Scripting V2.0
supports XML Parser functions.
All PHP functions are described in detail in the PHP manual at php.net.
The following XML Parser functions are supported:
utf8_decode
utf8_encode
xml_error_string
xml_get_current_byte_index
xml_get_current_column_number
xml_get_current_line_number
xml_get_error_code
xml_parse
xml_parse_into_struct
xml_parser_create
xml_parser_create_ns
xml_parser_free
xml_parser_get_option
xml_parser_set_option
xml_set_character_data_handler
xml_set_default_handler
xml_set_element_handler
xml_set_end_namespace_decl_handler
xml_set_external_entity_ref_handler
xml_set_notation_decl_handler
xml_set_object
xml_set_processing_instruction_handler
xml_set_start_namespace_decl_handler
xml_set_unparsed_entity_decl_handler
Notes relating to all XML Parser functions:
- libxml2 version 2.6.30 is used. libxml2 is not compiled with iconv support, and so the xml function supports only the default encodings of UTF-8, UTF-16, ISO-8859-1, ASCII and HTML.
- The following warning cannot contain the class name when an object callback is set in an array, instead you see "P8 Object". The method name is still correct. "Warning: xml_parse(): Unable to call handler P8 Object::unknownHandler() in %s on line %d."
- If you pass a callback of, for example, array(1,2) you do not see the following expected notice: "Notice: Non-callable array passed to zend_call_function() in %s on line %d."