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

The Dom\DocumentType class

Each Dom\Document has a doctype attribute whose value is either null or a Dom\DocumentType object.

Intro

Each Dom\Document has a doctype attribute whose value is either null or a Dom\DocumentType object.

This is the modern, spec-compliant equivalent of DOMImplementation.

Class synopsis

class Dom\DocumentType extends Dom\Node implements Dom\ChildNode { }

Properties

entities

A Dom\DtdNamedNodeMap containing the general entities, both external and internal, declared in the DTD.

notations

A Dom\DtdNamedNodeMap containing the notations declared in the DTD.

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