The DOMDocumentType class
(PHP 5, PHP 7, PHP 8)
Introduction
Each DOMDocument has a doctype
attribute whose value is either null or a DOMDocumentType object.
Class synopsis
bool
$exclusive = false,bool
$withComments = false,?array
$xpath = null,?array
$nsPrefixes = null): string|false
Properties
publicIdThe public identifier of the external subset.
systemIdThe system identifier of the external subset. This may be an absolute URI or not.
name
The name of DTD; i.e., the name immediately following the
DOCTYPE keyword.
A DOMNamedNodeMap containing the general entities, both external and internal, declared in the DTD.
notationsA DOMNamedNodeMap containing the notations declared in the DTD.
internalSubset
The internal subset as a string, or null if there is none. This
does not contain the delimiting square brackets.
来源:PHP Documentation Group · 作者与贡献记录 · CC BY 3.0。离线整理了版式、链接和媒体显示。
