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

XMLWriter::startElementNs

PHP function Edit on GitHub ✎

(PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

Create start namespaced element tag

Description

Oop

XMLWriter::startElementNs(string|null $prefix, string $name, string|null $namespace): bool

Procedural

xmlwriter_start_element_ns(XMLWriter $writer, string|null $prefix, string $name, string|null $namespace): bool

Starts a namespaced element.

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.

Return Values

Success

Changelog

VersionDescription

See Also

  • XMLWriter::endElement
  • XMLWriter::writeElementNs

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