Current Location: Home> Function Categories> xml_set_start_namespace_decl_handler

xml_set_start_namespace_decl_handler

Set up the startup namespace declaration handler
Name:xml_set_start_namespace_decl_handler
Category:XML parser
Programming Language:php
One-line Description:Set up the start namespace declaration handler.

Definition and usage

xml_set_start_namespace_decl_handler() function is used to set the start namespace declaration handler.

This function specifies the function to be called when declaring the namespace.

Note: The handler parameter can also be an array containing object references and method names.

grammar

 xml_set_start_namespace_decl_handler ( parser , handler )
parameter describe
parser Required. Specify the XML parser to use
Handler

Required. Specifies the function used as the event handler. The function must have three parameters:

  • $parser - Variable containing the XML parser that calls the handler
  • $prefix - A variable containing a reference to a namespace in an XML object
  • $uri - URI of namespace
Similar Functions
Popular Articles