(PHP 4, PHP 5, PHP 7, PHP 8)
xml_set_unparsed_entity_decl_handler — Set up unparsed entity declaration handler
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.
parserThe XML parser.
handler
If null or an empty string is passed, the handler is reset to its default state.
If handler is a callable,
the callable is set as the handler.
If handler is a string,
it can be the name of a method of an object set with
xml_set_object().
The signature of the handler must be:
$parser,$entity_name,$base,$system_id,$public_id,$notation_nameparserentity_namebasesystemId) of the external entity.
system_idpublic_idnotation_name
Always returns true.