xml_set_element_handler

(PHP 4, PHP 5, PHP 7)
Set up start and end element handlers
bool xml_set_element_handler ( resource $parser, callable $start_element_handler, callable $end_element_handler )

Sets the element handler functions for the XML parser. start_element_handler and end_element_handler are strings containing the names of functions that must exist when xml_parse() is called for parser.

Parameters:
parser

A reference to the XML parser to set up start and end element handler functions.

start_element_handler

The function named by start_element_handler must accept three parameters:

start_element_handler ( resource $parser , string $name , array $attribs )
end_element_handler

The function named by end_element_handler must accept two parameters:

end_element_handler ( resource $parser , string $name )
Returns:

Returns TRUE on success or FALSE on failure.

doc_php
2016-02-24 16:15:22
Comments
Leave a Comment

Please login to continue.