English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The xml_parser_set_option() function is used to set options for the XML parser.
xml_parser_set_option(parser,option,value)
It is used to set options in the XML parser
If the parser parameter does not point to a valid parser or the specified option cannot be set, this function will return FALSE, otherwise it will set the option to the specified value and return TRUE.
Serial Number | Parameters and Description |
---|---|
1 | parser Required. A pointer to the XML parser whose option is to be set. |
2 | option Required. Specify the option to be set. Possible values:
|
3 | value Required. Specify the new value of the option. |
Try the following examples, which are XML parser setting options.
<?php $input = xml_parser_create(); xml_parser_set_option($input, XML_OPTION_SKIP_WHITE, 1); xml_parser_free($input); ?>Test and see‹/›