Easy Tutorial
❮ Func Math Sinh Func String Ucwords ❯

PHP xml_set_notation_decl_handler() Function



Definition and Usage

The xml_set_notation_decl_handler() function specifies the function to be called when the parser finds a notation declaration in the XML document.

It returns TRUE on success and FALSE on failure.

Syntax

Parameter Description
parser Required. Specifies the XML parser to use.
handler Required. Specifies the function to be called when the parser finds a notation declaration.

The function specified by the "handler" parameter must have five parameters:

Parameter Description
parser Required. Specifies a variable containing the XML parser calling the handler.
name Required. Specifies a variable containing the notation declaration name.
base Required. Specifies the base for resolving the system identifier (system_id) of the notation declaration. Currently, this parameter is usually set to NULL.
system_id Required. Specifies a variable containing the system identifier of the notation declaration.
public_id Required. Specifies a variable containing the public identifier of the notation declaration.

Tips and Notes

Note: The handler parameter can also be an array containing an object reference and a method name.


Example


❮ Func Math Sinh Func String Ucwords ❯