xmlwriter_end_document()
function xmlwriter_end_document(mixed $writer): bool
Ends the document, closing every open node.
Parameters:
$writer(mixed)
Returns: bool
Availability
- Compiled (AOT): supported through an injected elephc-PHP prelude.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/xml/xmlwriter_end_document.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_end_document is implemented in the compiler, see the internals page.