Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

xml_parser_set_option(3) [php man page]

XML_PARSER_SET_OPTION(3)						 1						  XML_PARSER_SET_OPTION(3)

xml_parser_set_option - Set options in an XML parser

SYNOPSIS
bool xml_parser_set_option (resource $parser, int $option, mixed $value) DESCRIPTION
Sets an option in an XML parser. PARAMETERS
o $parser - A reference to the XML parser to set an option in. o $option - Which option to set. See below. The following options are available: XML parser options +---------------------------+--------------------------------------+---+ | Option constant | | | | | | | | | Data type | | | | | | | | Description | | | | | | +---------------------------+--------------------------------------+---+ | | | | | XML_OPTION_CASE_FOLDING | | | | | | | | | integer | | | | | | | | Controls whether case-folding is | | | | enabled for this XML parser. Enabled | | | | by default. | | | | | | | | | | | XML_OPTION_SKIP_TAGSTART | | | | | | | | | integer | | | | | | | | Specify how many characters should | | | | be skipped in the beginning of a tag | | | | name. | | | | | | | | | | | XML_OPTION_SKIP_WHITE | | | | | | | | | integer | | | | | | | | Whether to skip values consisting | | | | of whitespace characters. | | | | | | | | | | |XML_OPTION_TARGET_ENCODING | | | | | | | | | string | | | | | | | | Sets which target encoding to use | | | | in this XML parser.By default, it is | | | | set to the same as the source encod- | | | | ing used by xml_parser_create(3). | | | | Supported target encodings are | | | | ISO-8859-1, US-ASCII and UTF-8. | | | | | | +---------------------------+--------------------------------------+---+ o $value - The option's new value. RETURN VALUES
This function returns FALSE if $parser does not refer to a valid parser, or if the option could not be set. Else the option is set and TRUE is returned. PHP Documentation Group XML_PARSER_SET_OPTION(3)

Check Out this Related Man Page

XML_SET_UNPARSED_ENTITY_DECL_HANDLER(3) 				 1				   XML_SET_UNPARSED_ENTITY_DECL_HANDLER(3)

xml_set_unparsed_entity_decl_handler - Set up unparsed entity declaration handler

SYNOPSIS
bool xml_set_unparsed_entity_decl_handler (resource $parser, callable $handler) DESCRIPTION
Sets the unparsed entity declaration handler function for the XML parser $parser. The $handler will be called if the XML parser encounters an external entity declaration with an NDATA declaration, like the following: <!ENTITY <parameter>name</parameter> {<parameter>publicId</parameter> | <parameter>systemId</parameter>} NDATA <parameter>notationName</parameter> See section 4.2.2 of the XML 1.0 spec for the definition of notation declared external entities. PARAMETERS
o $parser - A reference to the XML parser to set up unparsed entity declaration handler function. o $handler -$handler is a string containing the name of a function that must exist when xml_parse(3) is called for $parser. The function named by $handler must accept six parameters: handler (resource $parser, string $entity_name, string $base, string $system_id, string $public_id, string $notation_name) o $parser - The first parameter, parser, is a reference to the XML parser calling the handler. o $entity_name - The name of the entity that is about to be defined. o $base - This is the base for resolving the system identifier ($systemId) of the external entity.Currently this parameter will always be set to an empty string. o $system_id - System identifier for the external entity. o $public_id - Public identifier for the external entity. o $notation_name - Name of the notation of this entity (see xml_set_notation_decl_handler(3)). If a handler function is set to an empty string, or FALSE, the handler in question is disabled. Note Instead of a function name, an array containing an object reference and a method name can also be supplied. RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group XML_SET_UNPARSED_ENTITY_DECL_HANDLER(3)
Man Page