PHP xml_parser_set_option() Function
Definition and Usage
The xml_parser_set_option() function sets options for the XML parser.
Returns true if successful. Returns false if failed.
Syntax
xml_parser_set_option(parser,option,value)
Parameter | Description |
---|---|
parser | Required. Specifies the XML parser to be used. |
option |
Required. Specifies the name of the setting option to be set. Possible values:
|
value | Required. Specifies the new value of the option. |
Example
<?php $xmlparser = xml_parser_create(); xml_parser_set_option($xmlparser, XML_OPTION_SKIP_WHITE, 1); xml_parser_free($xmlparser); ?>