php8.5
Home/ Manual/ reference / dom/ The DOMEntity class

The DOMEntity class

This interface represents a known entity, either parsed or unparsed, in an XML document.

Intro

This interface represents a known entity, either parsed or unparsed, in an XML document.

Class synopsis

class DOMEntity extends DOMNode { }

Properties

publicId

The public identifier associated with the entity if specified, and null otherwise.

systemId

The system identifier associated with the entity if specified, and null otherwise. This may be an absolute URI or not.

notationName

For unparsed entities, the name of the notation for the entity. For parsed entities, this is null.

actualEncoding

Deprecated as of PHP 8.4.0. This has always been equal to null.

encoding

Deprecated as of PHP 8.4.0. This has always been equal to null.

version

Deprecated as of PHP 8.4.0. This has always been equal to null.

Changelog

VersionDescription
8.4.0actualEncoding, encoding, and version are formally deprecated now because they have always been equal to null.

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