PHP xml_set_end_namespace_decl_handler() Function

❮ PHP XML Parser Reference


Definition and Usage

The xml_set_end_namespace_decl_handler() function sets up the end namespace declaration handler.

This function specifies what function to be called when leaving the scope of a namespace declaration. This will be called, for each namespace declaration, after the handler for the end tag of the element in which the namespace was declared.

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

Syntax

xml_set_end_namespace_decl_handler(parser, handler)

Parameter Values

Parameter Description
parser Required. Specifies the XML parser to use
handler Required. Specifies a function to be used as an event handler. The function must have two parameters:
  • $parser - A variable containing the XML parser calling the handler
  • $prefix - A variable containing a string used to reference the namespace within an XML object

Technical Details

Return Value: TRUE on success. FALSE on failure
PHP Version: 4.0.5+

❮ PHP XML Parser Reference
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.