Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

XML DOM - DocumentType object


May 27, 2021 XML DOM


Table of contents


XML DOM - DocumentType object


DocumentType object

Each document contains a DOCTYPE property, which can be an empty value or a DocumentType object.

The DocumentType object provides an interface to define the entities of the XML document.

DocumentType object properties

属性 描述
entities 返回包含有在 DTD 中所声明的实体的 NamedNodeMap。
internalSubset 以字符串形式返回内部 DTD。
name 返回 DTD 的名称。
notations 返回包含 DTD 声明的符号的 NamedNodeMap。
systemId 返回外部 DTD 的系统标识符。

Related articles

XML DOM doctype property