Stylus Studio XML Editor

Table of contents

Appendices

C.9 Entity Node Mapping

Entity Node Mapping

Infoset to Entity Node[top]

Infoset to Entity Node

An unparsed entity information item maps to a Entity node. The attributes of the corresponding Entity node are constructed as follows:

13The table contains the mapping of an Infoset information item to a Node Attribute Value
11Node.nodeName 11The [name] property
11Node.nodeValue 11null
11Node.nodeType 11Node.ENTITY_NODE
11Node.parentNode 11null
11Node.childNodes 11Empty NodeList
11Node.firstChild 11null
11Node.lastChild 11null
11Node.previousSibling 11null
11Node.nextSibling 11null
11Node.attributes 11null
11Node.ownerDocument 11The document information item
11Node.namespaceURI 11null
11Node.prefix 11null
11Node.localName 11null
11Node.baseURI 11The [declaration base URI] property
11Node.textContent 11"" (the node has no children)
11Entity.publicId 11The [public identifier] property
11Entity.systemId 11The [system identifier] property
11Entity.notationName 11The [notation name] property
11Entity.inputEncoding 11null
11Entity.xmlEncoding 11null
11Entity.xmlVersion 11null
NOTE: 

The [notation] property is available through the DocumentType node.

Entity Node to Infoset[top]

Entity Node to Infoset

An Entity node maps to an unparsed entity information item. Entity nodes with children (Node.childNodes contains a non-empty list) cannot be represented using the Infoset. The properties of the corresponding unparsed entity information item are constructed as follows:

13The table contains the mapping of a Node to the Infoset Property Value
11[name] 11Node.nodeName
11[system identifier] 11Entity.systemId
11[public identifier] 11Entity.publicId
11[declaration base URI] 11Node.baseURI
11[notation name] 11Entity.notationName
11[notation] 11The Notation node referenced from DocumentType.notations whose name is the [notation name] property