Lines Matching refs:parser
11 /* Prototype : proto bool xml_set_notation_decl_handler ( resource $parser , callback $handler )
12 * Description: Sets the notation declaration handler function for the XML parser.
19 $parser = xml_parser_create_ns();
21 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
22 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
24 var_dump(xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 1));
25 var_dump(xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "ISO-8859-1"));
27 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
28 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
30 var_dump(xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0));
31 var_dump(xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "UTF-8"));
33 var_dump(xml_parser_get_option($parser, XML_OPTION_CASE_FOLDING));
34 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
36 var_dump(xml_parser_set_option($parser, XML_OPTION_TARGET_ENCODING, "US-ASCII"));
37 var_dump(xml_parser_get_option($parser, XML_OPTION_TARGET_ENCODING));
39 xml_parser_free( $parser );