Dom 简明教程

DOM - Notation Object

在本章中,我们将学习 XML DOM Notation 对象。notation 对象属性提供了识别元素格式的范围,这些元素带有一个 notation 属性、一个特定处理指令或非 XML 数据。可以在 Notation 对象上执行 Node 对象属性和方法,因为它也被视为 Node。

In this chapter, we will study about the XML DOM Notation object. The notation object property provides a scope to recognize the format of elements with a notation attribute, a particular processing instruction or a non-XML data. The Node Object properties and methods can be performed on the Notation Object since that is also considered as a Node.

此对象从 Node 继承方法和属性。其 nodeName 是 notation 名称。无父级。

This object inherits methods and properties from Node. Its nodeName is the notation name. Has no parent.

Attributes

下表列出了 Notation 对象的属性 -

The following table lists the attributes of the Notation object −

Attribute

Type

Description

publicID

DOMString

It gives the name of the public identifier associated with the notation.

systemID

DOMString

It gives the name of the system identifier associated with the notation.