← All docs

xml_set_default_handler()

Sets the default handler that receives everything no other handler claims.

xml_set_default_handler()

function xml_set_default_handler(mixed $parser, mixed $handler): bool

Sets the default handler that receives everything no other handler claims.

Parameters:

  • $parser (mixed)
  • $handler (mixed)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xml_set_default_handler is implemented in the compiler, see the internals page.