← All docs

xml_parse()

Parses a chunk of XML data, dispatching the registered handlers.

xml_parse()

function xml_parse(mixed $parser, string $data, bool $is_final = false): int

Parses a chunk of XML data, dispatching the registered handlers.

Parameters:

  • $parser (mixed)
  • $data (string)
  • $is_final (bool), default false, optional

Returns: int

Availability

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

Internals

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