XML DOM – DocumentType 對象

2018-02-11 17:58 更新

XML DOM - DocumentType 對象


DocumentType 對象

每個文檔都包含一個 DOCTYPE 屬性,該屬性值可以是一個空值或是一個 DocumentType 對象。

DocumentType 對象提供了一個接口,用于定義 XML 文檔的實體。

DocumentType 對象屬性

屬性 描述
entities 返回包含有在 DTD 中所聲明的實體的 NamedNodeMap。
internalSubset 以字符串形式返回內(nèi)部 DTD。
name 返回 DTD 的名稱。
notations 返回包含 DTD 聲明的符號的 NamedNodeMap。
systemId 返回外部 DTD 的系統(tǒng)標(biāo)識符。

相關(guān)文章

XML DOM doctype 屬性

以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號