XMLWriter::writeAttributeNs
PHP function
Edit on GitHub ✎
(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)
Write full namespaced attribute
Description
Oop
XMLWriter::writeAttributeNs(string|null $prefix, string $name, string|null $namespace, string $value): bool
Procedural
xmlwriter_write_attribute_ns(XMLWriter $writer, string|null $prefix, string $name, string|null $namespace, string $value): bool
Writes a full namespaced attribute.
Parameters
prefixThe namespace prefix. If
prefixis null, the namespace will be omitted.nameThe attribute name.
namespaceThe namespace URI. If
namespaceis null, the namespace declaration will be omitted.valueThe attribute value.
Return Values
Success
Changelog
| Version | Description |
|---|
See Also
XMLWriter::writeAttributeXMLWriter::startAttributeXMLWriter::startAttributeNsXMLWriter::endAttribute