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), defaultfalse, optional
Returns: int
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xml_parse.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xml_parse is implemented in the compiler, see the internals page.