PHP xml_parser_set_option() Function
Example
Set an option in the XML parser:
<?php
$parser=xml_parser_create();
xml_parser_set_option($parser, XML_OPTION_CASE_FOLDING, 0);
xml_parser_free($parser);
?>
Definition and Usage
The xml_parser_set_option() function sets options in an XML parser.
Syntax
xml_parser_set_option(parser, option, value)
Parameter Values
Parameter | Description |
---|---|
parser | Required. Specifies the XML parser to use |
option | Required. Specifies the option to set. Possible values:
|
value | Required. Specifies options new value |
Technical Details
Return Value: | TRUE on success. FALSE on failure |
---|---|
PHP Version: | 4.0+ |
❮ PHP XML Parser Reference