xml_set_default_handler
int xml_set_default_handler(resource parserID, string handler)
parserID | Reference to a valid parser |
handler | Function to be used as an event handler |
Sets the default handler for the specified XML parser.
Returns:
TRUE on success; FALSE on error
Description:
Handles data for all nodes that are not handled, such as version and DTD declaration, as well as comments. Setting the handler to FALSE or an empty string disables the handler. The function returns TRUE on success and FALSE if the parser is invalid or the handler was not set up.
Parameter | Description |
---|---|
parser | Reference to the XML parser that uses this function |
data | Parts of the XML document that are not handled |
Version:
PHP 3 >= 3.0.6, PHP 4 >= 4.0b1
Example: ...
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.