xmlwriter_write_element_ns()
function xmlwriter_write_element_ns(mixed $writer, ?string $prefix, string $name, ?string $namespace, ?string $content = null): bool
Writes a complete namespaced element.
Parameters:
$writer(mixed)$prefix(?string)$name(string)$namespace(?string)$content(?string), defaultnull, optional
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_write_element_ns.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how xmlwriter_write_element_ns is implemented in the compiler, see the internals page.