Stylus Studio XML Editor

Table of contents

Appendices

C.8 DocumentType Node Mapping

DocumentType Node Mapping

Infoset to DocumentType Node[top]

Infoset to DocumentType Node

A document type declaration information item maps to a DocumentType node. The attributes of the corresponding DocumentType node are constructed as follows:

13The table contains the mapping of an Infoset information item to a Node Attribute Value
11Node.nodeName 11same as DocumentType.name
11Node.nodeValue 11null
11Node.nodeType 11Node.DOCUMENT_TYPE_NODE
11Node.parentNode 11The [parent] property
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 11null
11Node.textContent 11null
11DocumentType.name 11 The name of the document element.
11DocumentType.entities 11 The [unparsed entities] property available from the document information item.
11DocumentType.notations 11 The [notations] property available from the document information item.
11DocumentType.publicId 11 The [public identifier] property
11DocumentType.systemId 11 The [system identifier] property
11DocumentType.internalSubset 11 The value is implementation dependent
NOTE: 

The [children] property is not exposed through the DocumentType node.

DocumentType Node to Infoset[top]

DocumentType Node to Infoset

A DocumentType maps to a document type declaration information item. The properties of the corresponding document type declaration information item are constructed as follows:

13The table contains the mapping of a Node to the Infoset Property Value
11[system identifier] 11DocumentType.systemId
11[public identifier] 11DocumentType.publicId
11[children] 11The value of this property is implementation dependent
11[parent] 11Node.parentNode