← All docs
xml_parse_into_struct()
Parses a whole XML document into an array of tag structures and an index by tag name.
xml_parse_into_struct()
function xml_parse_into_struct(mixed $parser, string $data, mixed $values, mixed $index = null): int
Parses a whole XML document into an array of tag structures and an index by tag name.
Parameters:
$parser(mixed)$data(string)$values(mixed), passed by reference$index(mixed), passed by reference, defaultnull, optional
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xml_parse_into_struct.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xml_parse_into_struct is implemented in the compiler, see the internals page.