DOM - Notation 物件



在本章中,我們將學習 XML DOM Notation 物件。Notation 物件屬性提供了一個作用域來識別具有 notation 屬性、特殊處理指令或非 XML 資料的元素的格式。Node 物件屬性和方法可以在 Notation 物件上執行,因為該物件也被視為 Node。

此物件從Node繼承方法和屬性。它的nodeName是 notation 名稱。沒有父級。

屬性

下表列出了Notation物件的屬性 -

屬性 型別 說明
publicID DOMString 它提供與 notation 關聯的公有識別符號的名稱。
systemID DOMString 它提供與 notation 關聯的系統識別符號的名稱。
廣告
© . All rights reserved.