xml_set_element_handler

int xml_set_element_handler(resource parserID, string starthandler, 
string endhandler) 
parserID Reference to a valid parser
starthandler Function to be used as the starting event handler
endhandler Function to be used as the ending event handler

Sets the starting and ending handlers for the specified XML parser.

Returns:

TRUE on success; FALSE on error

Description:

The starting handler fires when the opening tag of an element is found; the ending handler fires when the closing tag of an element is found by the parser. Setting the handler to FALSE or an empty string disables the handler. The function returns FALSE if the parser is invalid or the handler was not created.

The start element function prototype should ...

Get PHP Functions Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.