Dom 简明教程
DOM - Entity Object
Entity 接口表示已解析或未解析的已知实体。从 Node 继承的 nodeName 属性包含实体名称。
Entity interface represents a known entity, either parsed or unparsed, in an XML document. The nodeName attribute that is inherited from Node contains the name of the entity.
Entity 对象没有任何父节点,并且它所有的后续节点都是只读的。
An Entity object does not have any parent node, and all its successor nodes are read-only.
Attributes
下表列出 Entity 对象的属性:
The following table lists the attributes of the Entity object −
Attribute |
Type |
Description |
DOMString |
This specifies the encoding used by the external parsed entity. Its value is null if it is an entity from the internal subset or if it is not known. |
|
DOMString |
For an unparsed entities, it gives the name of the notation and its value is null for the parsed entities. |
|
DOMString |
It gives the name of the public identifier associated with the entity. |
|
DOMString |
It gives the name of the system identifier associated with the entity. |
|
DOMString |
It gives the xml encoding included as a part of the text declaration for the external parsed entity, null otherwise. |
|
DOMString |
It gives the xml version included as a part of the text declaration for the external parsed entity, null otherwise. |