The xml_parser_get_option() function gets options from the XML parser.
If successful, the function returns the option value. On failure, returns FALSE and an error.
xml_parser_get_option(parser,option,value)
parameter | describe |
---|---|
parser | Required. Specifies the XML parser to use. |
option | Required. Specifies the options to obtain. Possible values: XML_OPTION_CASE_FOLDING - Specifies whether case-folding is allowed. Default is allowed. Can be 1 (TRUE) or 0 (FALSE). XML_OPTION_TARGET_ENCODING - Specifies which target encoding to use in the XML parser. By default, it has the same settings as the xml_parser_create() function, and the target encodings it supports are: ISO-8859-1, US-ASCII and UTF-8. |
<?php$xmlparser = xml_parser_create();echo xml_parser_get_option($xmlparser, XML_OPTION_CASE_FOLDING);xml_parser_free($xmlparser);?>