php8.5
Home/ Manual/ dom / dom/ The Dom\NamespaceInfo class

The Dom\NamespaceInfo class

This represents immutable information about namespaces of an element. This decouples namespaces from attributes, which was incorrectly intertwined for the old DOM classes.

Intro

This represents immutable information about namespaces of an element. This decouples namespaces from attributes, which was incorrectly intertwined for the old DOM classes.

Class synopsis

final Dom\NamespaceInfo { }

Properties

prefix

The namespace prefix of the attribute.

namespaceURI

The namespace URI of the attribute.

element

The element that this namespace information is about.

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