← All docs

xmlwriter_write_element_ns()

Writes a complete namespaced element.

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), default null, optional

Returns: bool

Availability

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.