xml_parser_create()
function xml_parser_create(?string $encoding = null): mixed
Creates a new XML parser object.
Parameters:
$encoding(?string), defaultnull, optional
Returns: mixed
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_parser_create.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xml_parser_create is implemented in the compiler, see the internals page.