GoLang xml_parser_get_option

request it (213)
GoLang replacement for PHP's xml_parser_get_option [edit | history]

Do you know a GoLang replacement for PHP's xml_parser_get_option? Write it!

PHP xml_parser_get_option

PHP original manual for xml_parser_get_option [ show | php.net ]


(PHP 4, PHP 5, PHP 7)

xml_parser_get_optionGet options from an XML parser


mixed xml_parser_get_option ( resource $parser , int $option )

Gets an option value from an XML parser.


A reference to the XML parser to get an option from.
Which option to fetch. XML_OPTION_CASE_FOLDING and XML_OPTION_TARGET_ENCODING are available. See xml_parser_set_option() for their description.

Return Values

This function returns FALSE if parser does not refer to a valid parser or if option isn't valid (generates also a E_WARNING). Else the option's value is returned.