XMLWriter::writeElementNs
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)
Write full namespaced element tag
Description
Oop
XMLWriter::writeElementNs(string|null $prefix, string $name, string|null $namespace, string|null $content = null): bool
Procedural
xmlwriter_write_element_ns(XMLWriter $writer, string|null $prefix, string $name, string|null $namespace, string|null $content = null): bool
Writes a full namespaced element tag.
Parameters
prefixThe namespace prefix. If
prefixis null, the namespace will be omitted.nameThe element name.
namespaceThe namespace URI. If
namespaceis null, the namespace declaration will be omitted.contentThe element contents.
Return Values
Success
Changelog
| Version | Description |
|---|
See Also
XMLWriter::startElementNsXMLWriter::endElementXMLWriter::writeElement