php8.5
Home/ Manual/ xmlwriter / xmlwriter/ XMLWriter::writeElementNs

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

prefix

The namespace prefix. If prefix is null, the namespace will be omitted.

name

The element name.

namespace

The namespace URI. If namespace is null, the namespace declaration will be omitted.

content

The element contents.

Return Values

Success

Changelog

VersionDescription

See Also

  • XMLWriter::startElementNs
  • XMLWriter::endElement
  • XMLWriter::writeElement

Source: reference/xmlwriter/xmlwriter/writeelementns.xml · from the official PHP manual (php/doc-en)